Class StoneChestBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
net.minecraft.world.level.block.entity.ChestBlockEntity
net.frozenblock.wilderwild.block.entity.StoneChestBlockEntity
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.level.block.entity.LidBlockEntity,net.minecraft.world.MenuProvider,net.minecraft.world.Nameable
public class StoneChestBlockEntity
extends net.minecraft.world.level.block.entity.ChestBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintfloatstatic final floatstatic final floatstatic final intstatic final intstatic final doublefloatfloatintprotected longFields inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG, lootTable, lootTableSeedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionStoneChestBlockEntity(@NotNull net.minecraft.core.BlockPos blockPos, @NotNull net.minecraft.world.level.block.state.BlockState blockState) -
Method Summary
Modifier and TypeMethodDescription@NotNull ArrayList<net.minecraft.world.item.ItemStack> static voidclientStoneTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull StoneChestBlockEntity stoneChest) intprotected @NotNull net.minecraft.network.chat.ComponentfloatgetOpenProgress(float delta) net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket@NotNull net.minecraft.nbt.CompoundTagvoidliftLid(float liftAmount, boolean ancient) voidload(@NotNull net.minecraft.nbt.CompoundTag tag) @NotNull ArrayList<net.minecraft.world.item.ItemStack> voidonLidSlam(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable StoneChestBlockEntity otherStoneChest) static voidplaySound(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.sounds.SoundEvent soundEvent, @NotNull net.minecraft.sounds.SoundEvent waterloggedSoundEvent, float volume) protected voidsaveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag) static voidserverStoneTick(@NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull StoneChestBlockEntity stoneChest) voidsetLid(float liftAmount) voidstartOpen(@NotNull net.minecraft.world.entity.player.Player player) booleanstillValid(@NotNull net.minecraft.world.entity.player.Player player) voidstopOpen(@NotNull net.minecraft.world.entity.player.Player player) voidsyncLidValuesAndUpdate(@Nullable StoneChestBlockEntity otherStoneChest) Methods inherited from class net.minecraft.world.level.block.entity.ChestBlockEntity
createMenu, getContainerSize, getItems, getOpenCount, getOpenNess, lidAnimateTick, recheckOpen, setItems, signalOpenCount, swapContents, triggerEventMethods inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
canOpen, clearContent, createMenu, getItem, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTableMethods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, getCustomName, getDisplayName, getName, setCustomNameMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemovedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChangedMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
LID_SLAM_INTERVAL
public static final float LID_SLAM_INTERVAL- See Also:
-
MAX_OPEN_PERCENTAGE
public static final float MAX_OPEN_PERCENTAGE- See Also:
-
MAX_TIME_OPEN
public static final int MAX_TIME_OPEN- See Also:
-
MAX_TIME_OPEN_ANCIENT
public static final int MAX_TIME_OPEN_ANCIENT- See Also:
-
MIN_PERCENTAGE_OF_TIME_OPEN
public static final double MIN_PERCENTAGE_OF_TIME_OPEN- See Also:
-
openProgress
public float openProgress -
prevOpenProgress
public float prevOpenProgress -
highestLidPoint
public float highestLidPoint -
stillLidTicks
public int stillLidTicks -
cooldownTicks
public int cooldownTicks -
closing
public boolean closing -
updateTime
protected long updateTime
-
-
Constructor Details
-
StoneChestBlockEntity
public StoneChestBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos blockPos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState blockState)
-
-
Method Details
-
serverStoneTick
public static void serverStoneTick(@NotNull @NotNull net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull StoneChestBlockEntity stoneChest) -
clientStoneTick
public static void clientStoneTick(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull StoneChestBlockEntity stoneChest) -
playSound
public static void playSound(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.sounds.SoundEvent soundEvent, @NotNull @NotNull net.minecraft.sounds.SoundEvent waterloggedSoundEvent, float volume) -
load
public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
loadin classnet.minecraft.world.level.block.entity.ChestBlockEntity
-
saveAdditional
protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.ChestBlockEntity
-
getOpenProgress
public float getOpenProgress(float delta) -
liftLid
public void liftLid(float liftAmount, boolean ancient) -
setLid
public void setLid(float liftAmount) -
getComparatorOutput
public int getComparatorOutput() -
onLidSlam
public void onLidSlam(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable StoneChestBlockEntity otherStoneChest) -
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin interfacenet.minecraft.world.Container- Overrides:
stillValidin classnet.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
-
syncLidValuesAndUpdate
-
getUpdatePacket
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
@NotNull public @NotNull net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
getDefaultName
@NotNull protected @NotNull net.minecraft.network.chat.Component getDefaultName()- Overrides:
getDefaultNamein classnet.minecraft.world.level.block.entity.ChestBlockEntity
-
startOpen
public void startOpen(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Specified by:
startOpenin interfacenet.minecraft.world.Container- Overrides:
startOpenin classnet.minecraft.world.level.block.entity.ChestBlockEntity
-
stopOpen
public void stopOpen(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Specified by:
stopOpenin interfacenet.minecraft.world.Container- Overrides:
stopOpenin classnet.minecraft.world.level.block.entity.ChestBlockEntity
-
nonAncientItems
-
ancientItems
-