类 BrushableBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BrushableBlockEntity
- 所有已实现的接口:
IAttachmentHolder
,IBlockEntityExtension
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElement
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
-
字段概要
字段修饰符和类型字段说明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.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
brush
(long p_277786_, ServerLevel p_373105_, LivingEntity p_393879_, Direction p_277424_, ItemStack p_372848_) private void
brushingCompleted
(ServerLevel p_373046_, LivingEntity p_394011_, ItemStack p_373073_) void
checkReset
(ServerLevel p_372947_) private void
dropContent
(ServerLevel p_373112_, LivingEntity p_393620_, ItemStack p_372836_) private int
getItem()
getUpdateTag
(HolderLookup.Provider p_323531_) protected void
loadAdditional
(ValueInput p_422299_) protected void
saveAdditional
(ValueOutput p_421746_) void
setLootTable
(ResourceKey<LootTable> p_335433_, long p_277991_) private boolean
tryLoadLootTable
(ValueInput p_422032_) private boolean
trySaveLootTable
(ValueOutput p_421941_) private void
unpackLootTable
(ServerLevel p_373015_, LivingEntity p_394489_, ItemStack p_372798_) 从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, 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_373105_, LivingEntity p_393879_, Direction p_277424_, ItemStack p_372848_) -
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
-