接口 EntityLike

    • 方法详细资料

      • getId

        int getId()
        Returns the network ID of this entity.
        Mappings:
        Namespace Name Mixin selector
        official Y Lcnb;Y()I
        intermediary method_5628 Lnet/minecraft/class_5568;method_5628()I
        named getId Lnet/minecraft/world/entity/EntityLike;getId()I
      • getUuid

        UUID getUuid()
        Mappings:
        Namespace Name Mixin selector
        official cd Lcnb;cd()Ljava/util/UUID;
        intermediary method_5667 Lnet/minecraft/class_5568;method_5667()Ljava/util/UUID;
        named getUuid Lnet/minecraft/world/entity/EntityLike;getUuid()Ljava/util/UUID;
      • getBlockPos

        BlockPos getBlockPos()
        Mappings:
        Namespace Name Mixin selector
        official cN Lcnb;cN()Lgb;
        intermediary method_24515 Lnet/minecraft/class_5568;method_24515()Lnet/minecraft/class_2338;
        named getBlockPos Lnet/minecraft/world/entity/EntityLike;getBlockPos()Lnet/minecraft/util/math/BlockPos;
      • getBoundingBox

        Box getBoundingBox()
        Mappings:
        Namespace Name Mixin selector
        official cn Lcnb;cn()Ldlv;
        intermediary method_5829 Lnet/minecraft/class_5568;method_5829()Lnet/minecraft/class_238;
        named getBoundingBox Lnet/minecraft/world/entity/EntityLike;getBoundingBox()Lnet/minecraft/util/math/Box;
      • setListener

        void setListener​(EntityChangeListener listener)
        Mappings:
        Namespace Name Mixin selector
        official a Lcnb;a(Lcnc;)V
        intermediary method_31744 Lnet/minecraft/class_5568;method_31744(Lnet/minecraft/class_5569;)V
        named setListener Lnet/minecraft/world/entity/EntityLike;setListener(Lnet/minecraft/world/entity/EntityChangeListener;)V
      • streamSelfAndPassengers

        Stream<? extends EntityLike> streamSelfAndPassengers()
        Returns a stream consisting of this entity and its passengers recursively. Each entity will appear before any of its passengers.

        This may be less costly than streamPassengersAndSelf() if the stream's iteration would terminates fast, such as finding an arbitrary match of entity in the passengers tree.

        另请参阅:
        streamPassengersAndSelf()
        Implementation Note:
        The default implementation is not very efficient.
        Mappings:
        Namespace Name Mixin selector
        official cy Lcnb;cy()Ljava/util/stream/Stream;
        intermediary method_24204 Lnet/minecraft/class_5568;method_24204()Ljava/util/stream/Stream;
        named streamSelfAndPassengers Lnet/minecraft/world/entity/EntityLike;streamSelfAndPassengers()Ljava/util/stream/Stream;
      • streamPassengersAndSelf

        Stream<? extends EntityLike> streamPassengersAndSelf()
        Returns a stream consisting of this entity and its passengers in which this entity's passengers are iterated before this entity.

        Moreover, this stream guarantees that any entity only appears after all its passengers have appeared in the stream. This is useful for certain actions that must be applied on passengers before applying on this entity.

        另请参阅:
        streamSelfAndPassengers()
        Implementation Note:
        The default implementation is very costly.
        Mappings:
        Namespace Name Mixin selector
        official cz Lcnb;cz()Ljava/util/stream/Stream;
        intermediary method_31748 Lnet/minecraft/class_5568;method_31748()Ljava/util/stream/Stream;
        named streamPassengersAndSelf Lnet/minecraft/world/entity/EntityLike;streamPassengersAndSelf()Ljava/util/stream/Stream;
      • setRemoved

        void setRemoved​(Entity.RemovalReason reason)
        Mappings:
        Namespace Name Mixin selector
        official b Lcnb;b(Lasl$c;)V
        intermediary method_31745 Lnet/minecraft/class_5568;method_31745(Lnet/minecraft/class_1297$class_5529;)V
        named setRemoved Lnet/minecraft/world/entity/EntityLike;setRemoved(Lnet/minecraft/entity/Entity$RemovalReason;)V
      • shouldSave

        boolean shouldSave()
        Mappings:
        Namespace Name Mixin selector
        official df Lcnb;df()Z
        intermediary method_31746 Lnet/minecraft/class_5568;method_31746()Z
        named shouldSave Lnet/minecraft/world/entity/EntityLike;shouldSave()Z
      • isPlayer

        boolean isPlayer()
        Mappings:
        Namespace Name Mixin selector
        official dg Lcnb;dg()Z
        intermediary method_31747 Lnet/minecraft/class_5568;method_31747()Z
        named isPlayer Lnet/minecraft/world/entity/EntityLike;isPlayer()Z