net.minecraft.block.entity

public class BrushableBlockEntity

extends BlockEntity

All mapped superinterfaces:

DebugTrackable, EntryConvertible

net.minecraft.world.level.block.entity.BrushableBlockEntity
net.minecraft.class_8174
net.minecraft.block.entity.BrushableBlockEntity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_42801
LOGGER
private static final String
LOOT_TABLE_TAG
field_42802
LOOT_TABLE_NBT_KEY
private static final String
LOOT_TABLE_SEED_TAG
field_42803
LOOT_TABLE_SEED_NBT_KEY
private static final String
HIT_DIRECTION_TAG
field_42804
HIT_DIRECTION_NBT_KEY
private static final String
ITEM_TAG
field_42805
ITEM_NBT_KEY
private static final int
BRUSH_COOLDOWN_TICKS
field_42806
field_42806
private static final int
BRUSH_RESET_TICKS
field_42807
field_42807
private static final int
REQUIRED_BRUSHES_TO_BREAK
field_42808
field_42808
private int
brushCount
field_42809
brushesCount
private long
brushCountResetsAtTick
field_42810
nextDustTime
private long
coolDownEndsAtTick
field_42811
nextBrushTime
private ItemStack
item
field_42812
item
private Direction
hitDirection
field_42813
hitDirection
private RegistryKey<LootTable>
lootTable
field_42814
lootTable
private long
lootTableSeed
field_42815
lootTableSeed

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public boolean
brush(long gameTime, ServerLevel level, LivingEntity user, Direction direction, ItemStack brush)
method_49215(long arg0, class_3218 arg1, class_1309 arg2, class_2350 arg3, class_1799 arg4)
brush(long worldTime, ServerWorld world, LivingEntity brusher, Direction hitDirection, ItemStack brush)
private void
unpackLootTable(ServerLevel level, LivingEntity user, ItemInstance brush)
method_49217(class_3218 arg0, class_1309 arg1, class_1_96 arg2)
generateItem(ServerWorld world, LivingEntity brusher, ItemStackView arg2)
private void
brushingCompleted(ServerLevel level, LivingEntity user, ItemStack brush)
method_49218(class_3218 arg0, class_1309 arg1, class_1799 arg2)
finishBrushing(ServerWorld world, LivingEntity brusher, ItemStack brush)
private void
dropContent(ServerLevel level, LivingEntity user, ItemStack brush)
method_49220(class_3218 arg0, class_1309 arg1, class_1799 arg2)
spawnItem(ServerWorld world, LivingEntity brusher, ItemStack brush)
public void
checkReset(ServerLevel level)
method_49219(class_3218 arg0)
scheduledTick(ServerWorld world)
private boolean
tryLoadLootTable(ValueInput input)
method_49222(class_11368 arg0)
readLootTableFromData(ReadView view)
private boolean
trySaveLootTable(ValueOutput base)
method_49223(class_11372 arg0)
writeLootTableToData(WriteView view)
public NbtCompound
getUpdateTag(HolderLookup$Provider registries)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
public BlockEntityUpdateS2CPacket
getUpdatePacket()
method_38235()
toUpdatePacket()
protected void
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
protected void
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
public void
setLootTable(ResourceKey<LootTable> lootTable, long seed)
method_49216(class_5321<class_52> arg0, long arg1)
setLootTable(RegistryKey<LootTable> lootTable, long seed)
private int
getCompletionState()
method_49226()
getDustedLevel()
public Direction
getHitDirection()
method_49224()
getHitDirection()
public ItemStack
getItem()
method_49225()
getItem()
public Packet
getUpdatePacket()
method_38235()
toUpdatePacket()