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

public abstract class RedStringBlockEntity extends BotaniaBlockEntity implements Bound
  • 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, worldPosition

    Fields inherited from interface vazkii.botania.api.block.Bound

    UNBOUND_POS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RedStringBlockEntity(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 Type
    Method
    Description
    abstract boolean
    acceptBlock(net.minecraft.core.BlockPos pos)
     
    static void
    commonTick(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.BlockPos
    Gets where this block is bound to
    net.minecraft.world.level.block.Block
     
    net.minecraft.core.Direction
     
    int
     
    net.minecraft.world.level.block.state.BlockState
     
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
     
    void
    onBound(@Nullable net.minecraft.core.BlockPos pos)
     
    void
    setBinding(net.minecraft.core.BlockPos binding)
     

    Methods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity

    getUpdatePacket, getUpdateTag, loadAdditional, readPacketNBT, saveAdditional, writePacketNBT

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: Bound
      Gets where this block is bound to
      Specified by:
      getBinding in interface Bound
    • 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()