net.minecraft.world.level.gameevent

public class EntityPositionSource

implements PositionSource

dwv
net.minecraft.world.level.gameevent.EntityPositionSource
net.minecraft.class_5709
net.minecraft.world.event.EntityPositionSource
net.minecraft.src.C_141304_
net.minecraft.world.level.gameevent.EntityPositionSource

Field summary

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

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(dca arg0)
getPosition(Level arg0)
method_32956(class_1937 arg0)
getPos(World arg0)
m_142502_(C_1596_ arg0)
private void
b(dca arg0)
resolveEntity(Level arg0)
method_42681(class_1937 arg0)
findEntityInWorld(World world)
m_223677_(C_1596_ arg0)
private UUID
b()
getUuid()
method_42680()
getUuid()
m_223674_()
private int
c()
getId()
method_42683()
getEntityId()
m_223681_()
public PositionSourceType<EntityPositionSource>
a()
getType()
method_32955()
getType()
m_142510_()