Interface EtheriumHandlerBlock


public interface EtheriumHandlerBlock
Represents a block that has an EtheriumHandler BlockEntity attached. Methods in this class mainly serve selection purposes.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.world.level.block.entity.BlockEntity
    getBlockEntity(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    Returns the BlockEntity at the given position.
  • Method Details

    • getBlockEntity

      @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Returns the BlockEntity at the given position. If this is a block larger than 1x1x1, this should return the BlockEntity that actually controls the logic. If an actual block entity is not present, null should be returned.
      Parameters:
      level - The Level to use.
      pos - The BlockPos to use.
      state - The BlockState to use.
      Returns:
      The BlockEntity at the given position.