Package net.minecraft.util.math
Class EntityPosWrapper
- java.lang.Object
-
- net.minecraft.util.math.EntityPosWrapper
-
- All Implemented Interfaces:
IPosWrapper
public class EntityPosWrapper extends java.lang.Object implements IPosWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private Entity
entity
private boolean
trackEyeHeight
-
Constructor Summary
Constructors Constructor Description EntityPosWrapper(Entity p_i231516_1_, boolean p_i231516_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockPos
currentBlockPosition()
Vector3d
currentPosition()
boolean
isVisibleBy(LivingEntity p_220610_1_)
java.lang.String
toString()
-
-
-
Field Detail
-
entity
private final Entity entity
-
trackEyeHeight
private final boolean trackEyeHeight
-
-
Constructor Detail
-
EntityPosWrapper
public EntityPosWrapper(Entity p_i231516_1_, boolean p_i231516_2_)
-
-
Method Detail
-
currentPosition
public Vector3d currentPosition()
- Specified by:
currentPosition
in interfaceIPosWrapper
-
currentBlockPosition
public BlockPos currentBlockPosition()
- Specified by:
currentBlockPosition
in interfaceIPosWrapper
-
isVisibleBy
public boolean isVisibleBy(LivingEntity p_220610_1_)
- Specified by:
isVisibleBy
in interfaceIPosWrapper
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-