Class EntityPositionSource
java.lang.Object
net.minecraft.world.level.gameevent.EntityPositionSource
- All Implemented Interfaces:
PositionSource
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityPositionSource>
(package private) final float
-
Constructor Summary
ConstructorDescriptionEntityPositionSource
(com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> p_223651_, float p_223652_) EntityPositionSource
(Entity p_223648_, float p_223649_) -
Method Summary
Modifier and TypeMethodDescription(package private) int
getId()
getPosition
(Level p_157733_) getType()
private UUID
getUuid()
private void
resolveEntity
(Level p_223678_)
-
Field Details
-
CODEC
-
entityOrUuidOrId
-
yOffset
final float yOffset
-
-
Constructor Details
-
EntityPositionSource
-
EntityPositionSource
-
-
Method Details
-
getPosition
- Specified by:
getPosition
in interfacePositionSource
-
resolveEntity
-
getUuid
-
getId
int getId() -
getType
- Specified by:
getType
in interfacePositionSource
-