net.minecraft.world.level.gameevent

public class EntityPositionSource

implements PositionSource

ecp
net.minecraft.world.level.gameevent.EntityPositionSource
net.minecraft.class_5709
net.minecraft.world.event.EntityPositionSource
net.minecraft.world.level.gameevent.EntityPositionSource

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<EntityPositionSource>
a
CODEC
field_28139
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, EntityPositionSource>
b
STREAM_CODEC
field_48378
PACKET_CODEC
private com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>>
e
entityOrUuidOrId
field_38424
source
private final float
f
yOffset
field_38242
yOffset

Constructor summary

ModifierConstructor
public (Entity entity, float yOffset)
private (com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> source, float yOffset)

Method summary

Modifier and TypeMethod
public Optional<Vec3>
a(dhi arg0)
getPosition(Level arg0)
method_32956(class_1937 arg0)
getPos(World arg0)
private void
b(dhi arg0)
resolveEntity(Level arg0)
method_42681(class_1937 arg0)
findEntityInWorld(World world)
private UUID
b()
getUuid()
method_42680()
getUuid()
private int
c()
getId()
method_42683()
getEntityId()
public PositionSourceType<EntityPositionSource>
a()
getType()
method_32955()
getType()