类 BrushableBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BrushableBlockEntity
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInput
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private 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 ResourceKey
<LootTable> private long
private static final int
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
brush
(long p_277786_, ServerLevel p_368993_, Player p_277520_, Direction p_277424_, ItemStack p_363346_) private void
brushingCompleted
(ServerLevel p_369249_, Player p_277549_, ItemStack p_364625_) void
checkReset
(ServerLevel p_367879_) private void
dropContent
(ServerLevel p_360769_, Player p_278006_, ItemStack p_369575_) private int
getItem()
getUpdateTag
(HolderLookup.Provider p_329297_) protected void
loadAdditional
(CompoundTag p_335386_, HolderLookup.Provider p_334199_) protected void
saveAdditional
(CompoundTag p_277339_, HolderLookup.Provider p_329463_) void
setLootTable
(ResourceKey<LootTable> p_330093_, long p_277991_) private boolean
tryLoadLootTable
(CompoundTag p_277740_) private boolean
trySaveLootTable
(CompoundTag p_277591_) private void
unpackLootTable
(ServerLevel p_367709_, Player p_277940_, ItemStack p_365744_) 从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockEntity
getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LOOT_TABLE_TAG
- 另请参阅:
-
LOOT_TABLE_SEED_TAG
- 另请参阅:
-
HIT_DIRECTION_TAG
- 另请参阅:
-
ITEM_TAG
- 另请参阅:
-
BRUSH_COOLDOWN_TICKS
private static final int BRUSH_COOLDOWN_TICKS- 另请参阅:
-
BRUSH_RESET_TICKS
private static final int BRUSH_RESET_TICKS- 另请参阅:
-
REQUIRED_BRUSHES_TO_BREAK
private static final int REQUIRED_BRUSHES_TO_BREAK- 另请参阅:
-
brushCount
private int brushCount -
brushCountResetsAtTick
private long brushCountResetsAtTick -
coolDownEndsAtTick
private long coolDownEndsAtTick -
item
-
hitDirection
-
lootTable
-
lootTableSeed
private long lootTableSeed
-
-
构造器详细资料
-
BrushableBlockEntity
-
-
方法详细资料
-
brush
public boolean brush(long p_277786_, ServerLevel p_368993_, Player p_277520_, Direction p_277424_, ItemStack p_363346_) -
unpackLootTable
-
brushingCompleted
-
dropContent
-
checkReset
-
tryLoadLootTable
-
trySaveLootTable
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中BlockEntity
-
loadAdditional
- 覆盖:
loadAdditional
在类中BlockEntity
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-
setLootTable
-
getCompletionState
private int getCompletionState() -
getHitDirection
-
getItem
-