Class WashingMachineTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.WashingMachineTileEntity
- All Implemented Interfaces:
net.minecraft.world.inventory.MenuConstructor
,net.minecraft.world.MenuProvider
,net.minecraftforge.common.capabilities.ICapabilityProvider
,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>
,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>
,net.minecraftforge.common.extensions.IForgeBlockEntity
,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class WashingMachineTileEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements net.minecraft.world.MenuProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
-
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
ConstructorDescriptionWashingMachineTileEntity
(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) WashingMachineTileEntity
(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(net.minecraft.world.item.ItemStack stack) @Nullable net.minecraft.world.inventory.AbstractContainerMenu
createMenu
(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player p_39956_) net.minecraftforge.items.ItemStackHandler
net.minecraftforge.items.ItemStackHandler
net.minecraft.network.chat.Component
int
int
getSmeltTimeRemainingScaled
(int i) net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
net.minecraft.nbt.CompoundTag
boolean
void
load
(net.minecraft.nbt.CompoundTag nbt) void
onDataPacket
(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) void
saveAdditional
(net.minecraft.nbt.CompoundTag nbt) void
setSmeltTime
(int smeltTime) void
void
update()
Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
-
Constructor Details
-
WashingMachineTileEntity
public WashingMachineTileEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
WashingMachineTileEntity
public WashingMachineTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag nbt) - Overrides:
saveAdditional
in classnet.minecraft.world.level.block.entity.BlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag nbt) - Overrides:
load
in classnet.minecraft.world.level.block.entity.BlockEntity
-
update
public void update() -
smeltItem
public void smeltItem() -
add
public void add(net.minecraft.world.item.ItemStack stack) -
isRunning
public boolean isRunning() -
getSmeltTimeRemainingScaled
public int getSmeltTimeRemainingScaled(int i) -
getUpdatePacket
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacket
in classnet.minecraft.world.level.block.entity.BlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) - Specified by:
onDataPacket
in interfacenet.minecraftforge.common.extensions.IForgeBlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTag
in classnet.minecraft.world.level.block.entity.BlockEntity
-
getCooked
public net.minecraftforge.items.ItemStackHandler getCooked() -
getCooking
public net.minecraftforge.items.ItemStackHandler getCooking() -
getSmeltTime
public int getSmeltTime() -
setSmeltTime
public void setSmeltTime(int smeltTime) -
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayName
in interfacenet.minecraft.world.MenuProvider
-
createMenu
@Nullable public @Nullable net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player p_39956_) - Specified by:
createMenu
in interfacenet.minecraft.world.inventory.MenuConstructor
-