Class EntityPositionSource

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

public class EntityPositionSource extends Object implements PositionSource
Mappings:
Namespace Name
named net/minecraft/world/event/EntityPositionSource
intermediary net/minecraft/class_5709
official eco
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<EntityPositionSource> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/event/EntityPositionSource;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_28139 Lnet/minecraft/class_5709;field_28139:Lcom/mojang/serialization/MapCodec;
      official a Leco;a:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,EntityPositionSource> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/event/EntityPositionSource;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48378 Lnet/minecraft/class_5709;field_48378:Lnet/minecraft/class_9139;
      official b Leco;b:Lzt;
    • source

      private com.mojang.datafixers.util.Either<Entity,com.mojang.datafixers.util.Either<UUID,Integer>> source
      Mappings:
      Namespace Name Mixin selector
      named source Lnet/minecraft/world/event/EntityPositionSource;source:Lcom/mojang/datafixers/util/Either;
      intermediary field_38424 Lnet/minecraft/class_5709;field_38424:Lcom/mojang/datafixers/util/Either;
      official e Leco;e:Lcom/mojang/datafixers/util/Either;
    • yOffset

      private final float yOffset
      Mappings:
      Namespace Name Mixin selector
      named yOffset Lnet/minecraft/world/event/EntityPositionSource;yOffset:F
      intermediary field_38242 Lnet/minecraft/class_5709;field_38242:F
      official f Leco;f:F
  • Constructor Details

    • EntityPositionSource

      public EntityPositionSource(Entity entity, float yOffset)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/event/EntityPositionSource;<init>(Lnet/minecraft/entity/Entity;F)V
      intermediary <init> Lnet/minecraft/class_5709;<init>(Lnet/minecraft/class_1297;F)V
      official <init> Leco;<init>(Lbvj;F)V
    • EntityPositionSource

      private EntityPositionSource(com.mojang.datafixers.util.Either<Entity,com.mojang.datafixers.util.Either<UUID,Integer>> source, float yOffset)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/event/EntityPositionSource;<init>(Lcom/mojang/datafixers/util/Either;F)V
      intermediary <init> Lnet/minecraft/class_5709;<init>(Lcom/mojang/datafixers/util/Either;F)V
      official <init> Leco;<init>(Lcom/mojang/datafixers/util/Either;F)V
  • Method Details

    • getPos

      public Optional<Vec3d> getPos(World world)
      Specified by:
      getPos in interface PositionSource
      Mappings:
      Namespace Name Mixin selector
      named getPos Lnet/minecraft/world/event/PositionSource;getPos(Lnet/minecraft/world/World;)Ljava/util/Optional;
      intermediary method_32956 Lnet/minecraft/class_5716;method_32956(Lnet/minecraft/class_1937;)Ljava/util/Optional;
      official a Lecu;a(Ldhh;)Ljava/util/Optional;
    • findEntityInWorld

      private void findEntityInWorld(World world)
      Mappings:
      Namespace Name Mixin selector
      named findEntityInWorld Lnet/minecraft/world/event/EntityPositionSource;findEntityInWorld(Lnet/minecraft/world/World;)V
      intermediary method_42681 Lnet/minecraft/class_5709;method_42681(Lnet/minecraft/class_1937;)V
      official b Leco;b(Ldhh;)V
    • getUuid

      private UUID getUuid()
      Mappings:
      Namespace Name Mixin selector
      named getUuid Lnet/minecraft/world/event/EntityPositionSource;getUuid()Ljava/util/UUID;
      intermediary method_42680 Lnet/minecraft/class_5709;method_42680()Ljava/util/UUID;
      official b Leco;b()Ljava/util/UUID;
    • getEntityId

      private int getEntityId()
      Mappings:
      Namespace Name Mixin selector
      named getEntityId Lnet/minecraft/world/event/EntityPositionSource;getEntityId()I
      intermediary method_42683 Lnet/minecraft/class_5709;method_42683()I
      official c Leco;c()I
    • getType

      Returns the type of this position source.
      Specified by:
      getType in interface PositionSource
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/world/event/PositionSource;getType()Lnet/minecraft/world/event/PositionSourceType;
      intermediary method_32955 Lnet/minecraft/class_5716;method_32955()Lnet/minecraft/class_5717;
      official a Lecu;a()Lecv;