Class SuspiciousSandBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.SuspiciousSandBlockEntity
- All Implemented Interfaces:
ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private int
private long
private long
private static final String
private Direction
private ItemStack
private static final String
private static final org.slf4j.Logger
private static final String
private static final String
private ResourceLocation
private long
private static final int
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
private void
brushingCompleted
(Player p_272905_) void
private void
dropContent
(Player p_272898_) private int
getItem()
void
load
(CompoundTag p_272838_) protected void
saveAdditional
(CompoundTag p_273761_) void
setLootTable
(ResourceLocation p_272643_, long p_273491_) private boolean
tryLoadLootTable
(CompoundTag p_272958_) private boolean
trySaveLootTable
(CompoundTag p_273618_) void
unpackLootTable
(Player p_273298_) 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, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LOOT_TABLE_TAG
- See Also:
-
LOOT_TABLE_SEED_TAG
- See Also:
-
HIT_DIRECTION_TAG
- See Also:
-
ITEM_TAG
- See Also:
-
BRUSH_COOLDOWN_TICKS
private static final int BRUSH_COOLDOWN_TICKS- See Also:
-
BRUSH_RESET_TICKS
private static final int BRUSH_RESET_TICKS- See Also:
-
REQUIRED_BRUSHES_TO_BREAK
private static final int REQUIRED_BRUSHES_TO_BREAK- See Also:
-
brushCount
private int brushCount -
brushCountResetsAtTick
private long brushCountResetsAtTick -
coolDownEndsAtTick
private long coolDownEndsAtTick -
item
-
hitDirection
-
lootTable
-
lootTableSeed
private long lootTableSeed
-
-
Constructor Details
-
SuspiciousSandBlockEntity
-
-
Method Details
-
brush
-
unpackLootTable
-
brushingCompleted
-
dropContent
-
checkReset
public void checkReset() -
tryLoadLootTable
-
trySaveLootTable
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
load
- Overrides:
load
in classBlockEntity
-
saveAdditional
- Overrides:
saveAdditional
in classBlockEntity
-
setLootTable
-
getCompletionState
private int getCompletionState() -
getHitDirection
-
getItem
-