Class BrushableBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BrushableBlockEntity
- All Implemented Interfaces:
- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- ICapabilitySerializable<CompoundTag>,- IForgeBlockEntity,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate intprivate longprivate longprivate static final Stringprivate Directionprivate ItemStackprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate ResourceLocationprivate longprivate static final intFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprivate voidbrushingCompleted(Player p_277549_) voidprivate voiddropContent(Player p_278006_) private intgetItem()voidload(CompoundTag p_277597_) protected voidsaveAdditional(CompoundTag p_277339_) voidsetLootTable(ResourceLocation p_277611_, long p_277991_) private booleantryLoadLootTable(CompoundTag p_277740_) private booleantrySaveLootTable(CompoundTag p_277591_) voidunpackLootTable(Player p_277940_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitydeserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
- 
Field Details- 
LOGGERprivate 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_TICKSprivate static final int BRUSH_COOLDOWN_TICKS- See Also:
 
- 
BRUSH_RESET_TICKSprivate static final int BRUSH_RESET_TICKS- See Also:
 
- 
REQUIRED_BRUSHES_TO_BREAKprivate static final int REQUIRED_BRUSHES_TO_BREAK- See Also:
 
- 
brushCountprivate int brushCount
- 
brushCountResetsAtTickprivate long brushCountResetsAtTick
- 
coolDownEndsAtTickprivate long coolDownEndsAtTick
- 
item
- 
hitDirection
- 
lootTable
- 
lootTableSeedprivate long lootTableSeed
 
- 
- 
Constructor Details- 
BrushableBlockEntity
 
- 
- 
Method Details- 
brush
- 
unpackLootTable
- 
brushingCompleted
- 
dropContent
- 
checkResetpublic void checkReset()
- 
tryLoadLootTable
- 
trySaveLootTable
- 
getUpdateTag- Overrides:
- getUpdateTagin class- BlockEntity
 
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
load- Overrides:
- loadin class- BlockEntity
 
- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
setLootTable
- 
getCompletionStateprivate int getCompletionState()
- 
getHitDirection
- 
getItem
 
-