Class EntityPositionSource

java.lang.Object
net.minecraft.world.level.gameevent.EntityPositionSource
All Implemented Interfaces:
PositionSource

public class EntityPositionSource extends Object implements PositionSource
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<EntityPositionSource> CODEC
    • STREAM_CODEC

      public static final StreamCodec<io.netty.buffer.ByteBuf,EntityPositionSource> STREAM_CODEC
    • entityOrUuidOrId

      private com.mojang.datafixers.util.Either<Entity,com.mojang.datafixers.util.Either<UUID,Integer>> entityOrUuidOrId
    • yOffset

      private final float yOffset
  • Constructor Details

    • EntityPositionSource

      public EntityPositionSource(Entity p_223648_, float p_223649_)
    • EntityPositionSource

      private EntityPositionSource(com.mojang.datafixers.util.Either<Entity,com.mojang.datafixers.util.Either<UUID,Integer>> p_223651_, float p_223652_)
  • Method Details