Package net.minecraft.world.event
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 clrintermediary net/minecraft/class_5709named net/minecraft/world/event/EntityPositionSource
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEntityPositionSource.Type -
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<EntityPositionSource>CODECprivate Optional<Entity>entityprivate intentityIdFields inherited from interface net.minecraft.world.event.PositionSource
TYPE_CODEC -
Constructor Summary
Constructors Constructor Description EntityPositionSource(int entityId) -
Method Summary
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLclr;a:Lcom/mojang/serialization/Codec;intermediary field_28139Lnet/minecraft/class_5709;field_28139:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/event/EntityPositionSource;CODEC:Lcom/mojang/serialization/Codec;
-
entityId
private final int entityId- Mappings:
Namespace Name Mixin selector official cLclr;c:Iintermediary field_28140Lnet/minecraft/class_5709;field_28140:Inamed entityIdLnet/minecraft/world/event/EntityPositionSource;entityId:I
-
entity
- Mappings:
Namespace Name Mixin selector official dLclr;d:Ljava/util/Optional;intermediary field_28141Lnet/minecraft/class_5709;field_28141:Ljava/util/Optional;named entityLnet/minecraft/world/event/EntityPositionSource;entity:Ljava/util/Optional;
-
-
Constructor Details
-
EntityPositionSource
public EntityPositionSource(int entityId)- Mappings:
Namespace Name Mixin selector official <init>Lclr;<init>(I)Vintermediary <init>Lnet/minecraft/class_5709;<init>(I)Vnamed <init>Lnet/minecraft/world/event/EntityPositionSource;<init>(I)V
-
-
Method Details
-
getPos
- Specified by:
getPosin interfacePositionSource- Mappings:
Namespace Name Mixin selector official aLclx;a(Lbtv;)Ljava/util/Optional;intermediary method_32956Lnet/minecraft/class_5716;method_32956(Lnet/minecraft/class_1937;)Ljava/util/Optional;named getPosLnet/minecraft/world/event/PositionSource;getPos(Lnet/minecraft/world/World;)Ljava/util/Optional;
-
getType
- Specified by:
getTypein interfacePositionSource- Mappings:
Namespace Name Mixin selector official aLclx;a()Lcly;intermediary method_32955Lnet/minecraft/class_5716;method_32955()Lnet/minecraft/class_5717;named getTypeLnet/minecraft/world/event/PositionSource;getType()Lnet/minecraft/world/event/PositionSourceType;
-