Class EntityPositionSource

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

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

    • CODEC

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

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

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

    • EntityPositionSource

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

      EntityPositionSource(com.mojang.datafixers.util.Either<Entity,com.mojang.datafixers.util.Either<UUID,Integer>> source, float yOffset)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgb;<init>(Lcom/mojang/datafixers/util/Either;F)V
      intermediary <init> Lnet/minecraft/class_5709;<init>(Lcom/mojang/datafixers/util/Either;F)V
      named <init> Lnet/minecraft/world/event/EntityPositionSource;<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
      official a Ldgh;a(Lcmf;)Ljava/util/Optional;
      intermediary method_32956 Lnet/minecraft/class_5716;method_32956(Lnet/minecraft/class_1937;)Ljava/util/Optional;
      named getPos Lnet/minecraft/world/event/PositionSource;getPos(Lnet/minecraft/world/World;)Ljava/util/Optional;
    • findEntityInWorld

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

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

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

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