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.MapCodec
<EntityPositionSource> static final StreamCodec
<io.netty.buffer.ByteBuf, EntityPositionSource> private final float
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityPositionSource
(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 TypeMethodDescriptionprivate int
getId()
getPosition
(Level p_157733_) getType()
private UUID
getUuid()
private void
resolveEntity
(Level p_223678_)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
entityOrUuidOrId
-
yOffset
private final float yOffset
-
-
Constructor Details
-
EntityPositionSource
-
EntityPositionSource
-
-
Method Details
-
getPosition
- Specified by:
getPosition
in interfacePositionSource
-
resolveEntity
-
getUuid
-
getId
private int getId() -
getType
- Specified by:
getType
in interfacePositionSource
-