Package net.minecraft.dispenser
Class ProxyBlockSource
- java.lang.Object
-
- net.minecraft.dispenser.ProxyBlockSource
-
- All Implemented Interfaces:
IBlockSource
,IPosition
public class ProxyBlockSource extends java.lang.Object implements IBlockSource
-
-
Field Summary
Fields Modifier and Type Field Description private ServerWorld
level
private BlockPos
pos
-
Constructor Summary
Constructors Constructor Description ProxyBlockSource(ServerWorld p_i242071_1_, BlockPos p_i242071_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockState
getBlockState()
<T extends TileEntity>
TgetEntity()
ServerWorld
getLevel()
BlockPos
getPos()
double
x()
double
y()
double
z()
-
-
-
Field Detail
-
level
private final ServerWorld level
-
pos
private final BlockPos pos
-
-
Constructor Detail
-
ProxyBlockSource
public ProxyBlockSource(ServerWorld p_i242071_1_, BlockPos p_i242071_2_)
-
-
Method Detail
-
getLevel
public ServerWorld getLevel()
- Specified by:
getLevel
in interfaceIBlockSource
-
x
public double x()
- Specified by:
x
in interfaceIBlockSource
- Specified by:
x
in interfaceIPosition
-
y
public double y()
- Specified by:
y
in interfaceIBlockSource
- Specified by:
y
in interfaceIPosition
-
z
public double z()
- Specified by:
z
in interfaceIBlockSource
- Specified by:
z
in interfaceIPosition
-
getPos
public BlockPos getPos()
- Specified by:
getPos
in interfaceIBlockSource
-
getBlockState
public BlockState getBlockState()
- Specified by:
getBlockState
in interfaceIBlockSource
-
getEntity
public <T extends TileEntity> T getEntity()
- Specified by:
getEntity
in interfaceIBlockSource
-
-