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 dwu
  • 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 Ldwu;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 Ldwu;b:Lzn;
    • 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 Ldwu;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 Ldwu;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> Ldwu;<init>(Lbsv;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> Ldwu;<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 Ldxa;a(Ldbz;)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 Ldwu;b(Ldbz;)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 Ldwu;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 Ldwu;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 Ldxa;a()Ldxb;