Class PokeChestTileEntity
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.PokeChestTileEntity
- All Implemented Interfaces:
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 PokeChestTileEntity
extends net.minecraft.world.level.block.entity.BlockEntity
-
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
ConstructorDescriptionPokeChestTileEntity
(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) PokeChestTileEntity
(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
addClaimer
(UUID playerID) boolean
void
boolean
net.minecraft.world.item.ItemStack[]
boolean
int
getLootClaim
(UUID playerID) boolean
getOwner()
net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
net.minecraft.nbt.CompoundTag
boolean
boolean
isGrotto()
boolean
boolean
isUsableByPlayer
(net.minecraft.world.entity.player.Player player) void
load
(net.minecraft.nbt.CompoundTag tagger) void
onDataPacket
(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) void
readFromNBTClient
(net.minecraft.nbt.CompoundTag tagger) void
removeClaimer
(UUID playerID) void
saveAdditional
(net.minecraft.nbt.CompoundTag tagger) void
setChestOneTime
(boolean val) void
void
setCustomDropEnabled
(boolean enabled) void
setCustomDrops
(net.minecraft.world.item.ItemStack... customDrops) void
setDropOneTime
(boolean val) void
setFrontFace
(int face) void
void
setManualControl
(boolean val) void
void
void
setSpecialEventDrop
(net.minecraft.world.item.ItemStack itemStack) void
setTimeEnabled
(boolean val) void
setVisibility
(EnumPokechestVisibility visible) boolean
void
writeToNBTClient
(net.minecraft.nbt.CompoundTag tagger) 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
-
PokeChestTileEntity
public PokeChestTileEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState) -
PokeChestTileEntity
public PokeChestTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
setOwner
-
getOwner
-
setChestType
-
getChestType
-
setGrotto
public void setGrotto() -
isGrotto
public boolean isGrotto() -
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag tagger) - Overrides:
saveAdditional
in classnet.minecraft.world.level.block.entity.BlockEntity
-
writeToNBTClient
public void writeToNBTClient(net.minecraft.nbt.CompoundTag tagger) -
readFromNBTClient
public void readFromNBTClient(net.minecraft.nbt.CompoundTag tagger) -
load
public void load(net.minecraft.nbt.CompoundTag tagger) - Overrides:
load
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) -
canClaim
-
getLootClaim
-
addClaimer
-
removeClaimer
-
shouldBreakBlock
public boolean shouldBreakBlock() -
getManualControl
public boolean getManualControl() -
setManualControl
public void setManualControl(boolean val) -
enableConfigSettings
public void enableConfigSettings() -
setPokechestMode
-
setChestOneTime
public void setChestOneTime(boolean val) -
getChestMode
public boolean getChestMode() -
setDropOneTime
public void setDropOneTime(boolean val) -
getDropMode
public boolean getDropMode() -
isCustomDrop
public boolean isCustomDrop() -
isTimeEnabled
public boolean isTimeEnabled() -
setTimeEnabled
public void setTimeEnabled(boolean val) -
getCustomDrops
public net.minecraft.world.item.ItemStack[] getCustomDrops() -
setCustomDrops
public void setCustomDrops(net.minecraft.world.item.ItemStack... customDrops) -
setCustomDropEnabled
public void setCustomDropEnabled(boolean enabled) -
isUsableByPlayer
public boolean isUsableByPlayer(net.minecraft.world.entity.player.Player player) -
setFrontFace
public void setFrontFace(int face) -
getFrontFace
public int getFrontFace() -
setSpecialEventDrop
public void setSpecialEventDrop(net.minecraft.world.item.ItemStack itemStack) -
getVisibility
-
setVisibility
-