Class RedStringBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.red_string.RedStringBlockEntity
- All Implemented Interfaces:
Bound
- Direct Known Subclasses:
RedStringComparatorBlockEntity,RedStringContainerBlockEntity,RedStringInterceptorBlockEntity,RedStringNutrifierBlockEntity,RedStringSpooferBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface vazkii.botania.api.block.Bound
UNBOUND_POS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRedStringBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanacceptBlock(net.minecraft.core.BlockPos pos) static voidcommonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos_, net.minecraft.world.level.block.state.BlockState state, RedStringBlockEntity self) @Nullable net.minecraft.core.BlockPosGets where this block is bound tonet.minecraft.world.level.block.Blocknet.minecraft.core.DirectionintgetRange()net.minecraft.world.level.block.state.BlockState@Nullable net.minecraft.world.level.block.entity.BlockEntityvoidonBound(@Nullable net.minecraft.core.BlockPos pos) voidsetBinding(net.minecraft.core.BlockPos binding) Methods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity
getUpdatePacket, getUpdateTag, loadAdditional, readPacketNBT, saveAdditional, writePacketNBTMethods inherited from class 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, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEvent
-
Constructor Details
-
RedStringBlockEntity
protected RedStringBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
commonTick
public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos_, net.minecraft.world.level.block.state.BlockState state, RedStringBlockEntity self) -
getRange
public int getRange() -
acceptBlock
public abstract boolean acceptBlock(net.minecraft.core.BlockPos pos) -
onBound
public void onBound(@Nullable @Nullable net.minecraft.core.BlockPos pos) -
getBinding
@Nullable public @Nullable net.minecraft.core.BlockPos getBinding()Description copied from interface:BoundGets where this block is bound to- Specified by:
getBindingin interfaceBound
-
setBinding
public void setBinding(net.minecraft.core.BlockPos binding) -
getOrientation
public net.minecraft.core.Direction getOrientation() -
getTileAtBinding
@Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getTileAtBinding() -
getStateAtBinding
public net.minecraft.world.level.block.state.BlockState getStateAtBinding() -
getBlockAtBinding
public net.minecraft.world.level.block.Block getBlockAtBinding()
-