Class EntityPositionSource
java.lang.Object
net.minecraft.world.level.gameevent.EntityPositionSource
- All Implemented Interfaces:
PositionSource
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EntityPositionSource> static final StreamCodec<io.netty.buffer.ByteBuf, EntityPositionSource> private final float -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityPositionSource(com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> pEntityOrUuidOrId, float pYOffset) EntityPositionSource(Entity pEntity, float pYOffset) -
Method Summary
Modifier and TypeMethodDescriptionprivate intgetId()getPosition(Level pLevel) getType()private UUIDgetUuid()private voidresolveEntity(Level pLevel)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
entityOrUuidOrId
-
yOffset
private final float yOffset
-
-
Constructor Details
-
EntityPositionSource
-
EntityPositionSource
-
-
Method Details
-
getPosition
- Specified by:
getPositionin interfacePositionSource
-
resolveEntity
-
getUuid
-
getId
private int getId() -
getType
- Specified by:
getTypein interfacePositionSource
-