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 TypeMethodDescription@Nullable net.minecraft.world.level.block.entity.BlockEntitygetBlockEntity(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) Returns theBlockEntityat 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 theBlockEntityat the given position. If this is a block larger than 1x1x1, this should return theBlockEntitythat actually controls the logic. If an actual block entity is not present, null should be returned.- Parameters:
level- TheLevelto use.pos- TheBlockPosto use.state- TheBlockStateto use.- Returns:
- The
BlockEntityat the given position.
-