Class FossilCleanerTileEntity
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.FossilCleanerTileEntity
- All Implemented Interfaces:
IBasicInventory
,net.minecraft.world.Clearable
,net.minecraft.world.Container
,net.minecraft.world.WorldlyContainer
,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 FossilCleanerTileEntity
extends net.minecraft.world.level.block.entity.BlockEntity
implements net.minecraft.world.WorldlyContainer, IBasicInventory
-
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
Modifier and TypeFieldDescriptionnet.minecraft.world.item.Item
int
int
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
ConstructorDescriptionFossilCleanerTileEntity
(net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_) FossilCleanerTileEntity
(net.minecraft.world.level.block.entity.BlockEntityType<?> p_155228_, net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPlaceItem
(int index, net.minecraft.world.item.ItemStack stack) boolean
canPlaceItemThroughFace
(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction) boolean
canTakeItemThroughFace
(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction) int
net.minecraft.world.item.ItemStack
getItem
(int index) net.minecraft.world.item.Item
int
int[]
getSlotsForFace
(net.minecraft.core.Direction side) net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
net.minecraft.nbt.CompoundTag
boolean
isEmpty()
boolean
boolean
isOn()
void
load
(net.minecraft.nbt.CompoundTag nbt) void
onDataPacket
(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) net.minecraft.world.item.ItemStack
removeItemNoUpdate
(int index) void
saveAdditional
(net.minecraft.nbt.CompoundTag nbt) void
setItem
(int index, net.minecraft.world.item.ItemStack stack) void
setItemInCleaner
(net.minecraft.world.item.Item item) boolean
stillValid
(net.minecraft.world.entity.player.Player player) static void
tick
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, FossilCleanerTileEntity blockEntity) 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.minecraft.world.Container
canTakeItem, countItem, hasAnyMatching, hasAnyOf, setChanged
Methods inherited from interface com.pixelmonmod.pixelmon.blocks.tileentity.IBasicInventory
clearContent, removeItem, startOpen, stopOpen
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
-
Field Details
-
itemInCleaner
public net.minecraft.world.item.Item itemInCleaner -
timer
public int timer -
renderPass
public int renderPass
-
-
Constructor Details
-
FossilCleanerTileEntity
public FossilCleanerTileEntity(net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_) -
FossilCleanerTileEntity
public FossilCleanerTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> p_155228_, net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_)
-
-
Method Details
-
isOn
public boolean isOn() -
isFossilClean
public boolean isFossilClean() -
setItemInCleaner
public void setItemInCleaner(net.minecraft.world.item.Item item) -
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacenet.minecraft.world.Container
-
getItemInCleaner
public net.minecraft.world.item.Item getItemInCleaner() -
load
public void load(net.minecraft.nbt.CompoundTag nbt) - Overrides:
load
in classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag nbt) - Overrides:
saveAdditional
in classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTag
in classnet.minecraft.world.level.block.entity.BlockEntity
-
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
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfacenet.minecraft.world.Container
-
getItem
public net.minecraft.world.item.ItemStack getItem(int index) - Specified by:
getItem
in interfacenet.minecraft.world.Container
-
removeItemNoUpdate
public net.minecraft.world.item.ItemStack removeItemNoUpdate(int index) - Specified by:
removeItemNoUpdate
in interfacenet.minecraft.world.Container
-
setItem
public void setItem(int index, net.minecraft.world.item.ItemStack stack) - Specified by:
setItem
in interfacenet.minecraft.world.Container
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfacenet.minecraft.world.Container
- Specified by:
getMaxStackSize
in interfaceIBasicInventory
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValid
in interfacenet.minecraft.world.Container
-
canPlaceItem
public boolean canPlaceItem(int index, net.minecraft.world.item.ItemStack stack) - Specified by:
canPlaceItem
in interfacenet.minecraft.world.Container
- Specified by:
canPlaceItem
in interfaceIBasicInventory
-
getSlotsForFace
public int[] getSlotsForFace(net.minecraft.core.Direction side) - Specified by:
getSlotsForFace
in interfacenet.minecraft.world.WorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction) - Specified by:
canPlaceItemThroughFace
in interfacenet.minecraft.world.WorldlyContainer
-
canTakeItemThroughFace
public boolean canTakeItemThroughFace(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction) - Specified by:
canTakeItemThroughFace
in interfacenet.minecraft.world.WorldlyContainer
-
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, FossilCleanerTileEntity blockEntity)
-