public interface ITE<T extends net.minecraft.tileentity.TileEntity>
| Modifier and Type | Method and Description |
|---|---|
default T |
getTileEntity(net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos) |
java.lang.Class<T> |
getTileEntityClass() |
default java.util.Optional<T> |
getTileEntityOptional(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
default net.minecraft.util.ActionResultType |
onTileEntityUse(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
java.util.function.Function<T,net.minecraft.util.ActionResultType> action) |
default void |
withTileEntityDo(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
java.util.function.Consumer<T> action) |
java.lang.Class<T> getTileEntityClass()
default void withTileEntityDo(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
java.util.function.Consumer<T> action)
default net.minecraft.util.ActionResultType onTileEntityUse(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
java.util.function.Function<T,net.minecraft.util.ActionResultType> action)
default java.util.Optional<T> getTileEntityOptional(net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
@Nullable default T getTileEntity(net.minecraft.world.IBlockReader worldIn, net.minecraft.util.math.BlockPos pos)