Package net.minecraft.world.event
Class EntityPositionSource
java.lang.Object
net.minecraft.world.event.EntityPositionSource
- All Implemented Interfaces:
PositionSource
- Mappings:
Namespace Name named net/minecraft/world/event/EntityPositionSource
intermediary net/minecraft/class_5709
official dxu
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<EntityPositionSource> static final PacketCodec
<ByteBuf, EntityPositionSource> private final float
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityPositionSource
(com.mojang.datafixers.util.Either<Entity, com.mojang.datafixers.util.Either<UUID, Integer>> source, float yOffset) EntityPositionSource
(Entity entity, float yOffset) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
findEntityInWorld
(World world) private int
getType()
Returns the type of this position source.private UUID
getUuid()
-
Field Details
-
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
Ldxu;a:Lcom/mojang/serialization/MapCodec;
-
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
Ldxu;b:Lyw;
-
source
private com.mojang.datafixers.util.Either<Entity,com.mojang.datafixers.util.Either<UUID, sourceInteger>> - 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
Ldxu;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
Ldxu;f:F
-
-
Constructor Details
-
EntityPositionSource
- 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>
Ldxu;<init>(Lbsq;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>
Ldxu;<init>(Lcom/mojang/datafixers/util/Either;F)V
-
-
Method Details
-
getPos
- Specified by:
getPos
in interfacePositionSource
- 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
Ldya;a(Ldcu;)Ljava/util/Optional;
-
findEntityInWorld
- 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
Ldxu;b(Ldcu;)V
-
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
Ldxu;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
Ldxu;c()I
-
getType
Returns the type of this position source.- Specified by:
getType
in interfacePositionSource
- 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
Ldya;a()Ldyb;
-