类 EntityPositionSource

  • 所有已实现的接口:
    PositionSource

    public class EntityPositionSource
    extends Object
    implements PositionSource
    Mappings:
    Namespace Name
    official cnr
    intermediary net/minecraft/class_5709
    named net/minecraft/world/event/EntityPositionSource
    • 字段详细资料

      • CODEC

        public static final com.mojang.serialization.Codec<EntityPositionSource> CODEC
        Mappings:
        Namespace Name Mixin selector
        official a Lcnr;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;
      • entityId

        private final int entityId
        Mappings:
        Namespace Name Mixin selector
        official c Lcnr;c:I
        intermediary field_28140 Lnet/minecraft/class_5709;field_28140:I
        named entityId Lnet/minecraft/world/event/EntityPositionSource;entityId:I
      • entity

        private Optional<Entity> entity
        Mappings:
        Namespace Name Mixin selector
        official d Lcnr;d:Ljava/util/Optional;
        intermediary field_28141 Lnet/minecraft/class_5709;field_28141:Ljava/util/Optional;
        named entity Lnet/minecraft/world/event/EntityPositionSource;entity:Ljava/util/Optional;
    • 构造器详细资料

      • EntityPositionSource

        public EntityPositionSource​(int entityId)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcnr;<init>(I)V
        intermediary <init> Lnet/minecraft/class_5709;<init>(I)V
        named <init> Lnet/minecraft/world/event/EntityPositionSource;<init>(I)V
    • 方法详细资料

      • getPos

        public Optional<BlockPos> getPos​(World world)
        指定者:
        getPos 在接口中 PositionSource
        Mappings:
        Namespace Name Mixin selector
        official a Lcnx;a(Lbvr;)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;
      • getType

        public PositionSourceType<?> getType()
        Returns the type of this position source.
        指定者:
        getType 在接口中 PositionSource
        Mappings:
        Namespace Name Mixin selector
        official a Lcnx;a()Lcny;
        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;