Package net.minecraft.world.entity
Interface EntityLike
- All Known Implementing Classes:
AbstractClientPlayerEntity
,AbstractDecorationEntity
,AbstractDonkeyEntity
,AbstractFireballEntity
,AbstractHorseEntity
,AbstractMinecartEntity
,AbstractPiglinEntity
,AbstractSkeletonEntity
,AbstractWindChargeEntity
,AllayEntity
,AmbientEntity
,AnimalEntity
,AreaEffectCloudEntity
,ArmadilloEntity
,ArmorStandEntity
,ArrowEntity
,AxolotlEntity
,BatEntity
,BeeEntity
,BlazeEntity
,BlockAttachedEntity
,BoatEntity
,BoggedEntity
,BreezeEntity
,BreezeWindChargeEntity
,CamelEntity
,CatEntity
,CaveSpiderEntity
,ChestBoatEntity
,ChestMinecartEntity
,ChickenEntity
,ClientPlayerEntity
,CodEntity
,CommandBlockMinecartEntity
,CowEntity
,CreeperEntity
,DisplayEntity
,DisplayEntity.BlockDisplayEntity
,DisplayEntity.ItemDisplayEntity
,DisplayEntity.TextDisplayEntity
,DolphinEntity
,DonkeyEntity
,DragonFireballEntity
,DrownedEntity
,EggEntity
,ElderGuardianEntity
,EndCrystalEntity
,EnderDragonEntity
,EnderDragonPart
,EndermanEntity
,EndermiteEntity
,EnderPearlEntity
,Entity
,EvokerEntity
,EvokerFangsEntity
,ExperienceBottleEntity
,ExperienceOrbEntity
,ExplosiveProjectileEntity
,EyeOfEnderEntity
,FallingBlockEntity
,FireballEntity
,FireworkRocketEntity
,FishEntity
,FishingBobberEntity
,FlyingEntity
,FoxEntity
,FrogEntity
,FurnaceMinecartEntity
,GhastEntity
,GiantEntity
,GlowItemFrameEntity
,GlowSquidEntity
,GoatEntity
,GolemEntity
,GuardianEntity
,HoglinEntity
,HopperMinecartEntity
,HorseEntity
,HostileEntity
,HuskEntity
,IllagerEntity
,IllusionerEntity
,InteractionEntity
,IronGolemEntity
,ItemEntity
,ItemFrameEntity
,LeashKnotEntity
,LightningEntity
,LivingEntity
,LlamaEntity
,LlamaSpitEntity
,MagmaCubeEntity
,MarkerEntity
,MerchantEntity
,MinecartEntity
,MobEntity
,MooshroomEntity
,MuleEntity
,OcelotEntity
,OminousItemSpawnerEntity
,OtherClientPlayerEntity
,PaintingEntity
,PandaEntity
,ParrotEntity
,PassiveEntity
,PathAwareEntity
,PatrolEntity
,PersistentProjectileEntity
,PhantomEntity
,PigEntity
,PiglinBruteEntity
,PiglinEntity
,PillagerEntity
,PlayerEntity
,PolarBearEntity
,PotionEntity
,ProjectileEntity
,PufferfishEntity
,RabbitEntity
,RaiderEntity
,RavagerEntity
,SalmonEntity
,SchoolingFishEntity
,ServerPlayerEntity
,SheepEntity
,ShulkerBulletEntity
,ShulkerEntity
,SilverfishEntity
,SkeletonEntity
,SkeletonHorseEntity
,SlimeEntity
,SmallFireballEntity
,SnifferEntity
,SnowballEntity
,SnowGolemEntity
,SpawnerMinecartEntity
,SpectralArrowEntity
,SpellcastingIllagerEntity
,SpiderEntity
,SquidEntity
,StorageMinecartEntity
,StrayEntity
,StriderEntity
,TadpoleEntity
,TameableEntity
,TameableShoulderEntity
,ThrownEntity
,ThrownItemEntity
,TntEntity
,TntMinecartEntity
,TraderLlamaEntity
,TridentEntity
,TropicalFishEntity
,TurtleEntity
,VehicleEntity
,VexEntity
,VillagerEntity
,VindicatorEntity
,WanderingTraderEntity
,WardenEntity
,WaterCreatureEntity
,WindChargeEntity
,WitchEntity
,WitherEntity
,WitherSkeletonEntity
,WitherSkullEntity
,WolfEntity
,ZoglinEntity
,ZombieEntity
,ZombieHorseEntity
,ZombieVillagerEntity
,ZombifiedPiglinEntity
public interface EntityLike
A prototype of entity that's suitable for entity manager to handle.
- Mappings:
Namespace Name named net/minecraft/world/entity/EntityLike
intermediary net/minecraft/class_5568
official dxg
-
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Returns the network ID of this entity.getUuid()
boolean
isPlayer()
void
setChangeListener
(EntityChangeListener changeListener) void
setRemoved
(Entity.RemovalReason reason) boolean
Stream
<? extends EntityLike> Returns a stream consisting of this entity and its passengers in which this entity's passengers are iterated before this entity.Stream
<? extends EntityLike> Returns a stream consisting of this entity and its passengers recursively.
-
Method Details
-
getId
int getId()Returns the network ID of this entity.Compared to the UUID, the integer network ID is significantly smaller and more suitable for network transportation. However, it is not persistent across game runs. For persistent purposes such as commands or game data, use the UUID.
- Returns:
- the network ID of this entity
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/world/entity/EntityLike;getId()I
intermediary method_5628
Lnet/minecraft/class_5568;method_5628()I
official an
Ldxg;an()I
-
getUuid
UUID getUuid()- Mappings:
Namespace Name Mixin selector named getUuid
Lnet/minecraft/world/entity/EntityLike;getUuid()Ljava/util/UUID;
intermediary method_5667
Lnet/minecraft/class_5568;method_5667()Ljava/util/UUID;
official cz
Ldxg;cz()Ljava/util/UUID;
-
getBlockPos
BlockPos getBlockPos()- Mappings:
Namespace Name Mixin selector named getBlockPos
Lnet/minecraft/world/entity/EntityLike;getBlockPos()Lnet/minecraft/util/math/BlockPos;
intermediary method_24515
Lnet/minecraft/class_5568;method_24515()Lnet/minecraft/class_2338;
official do
Ldxg;do()Ljd;
-
getBoundingBox
Box getBoundingBox()- Mappings:
Namespace Name Mixin selector named getBoundingBox
Lnet/minecraft/world/entity/EntityLike;getBoundingBox()Lnet/minecraft/util/math/Box;
intermediary method_5829
Lnet/minecraft/class_5568;method_5829()Lnet/minecraft/class_238;
official cK
Ldxg;cK()Lewx;
-
setChangeListener
- Mappings:
Namespace Name Mixin selector named setChangeListener
Lnet/minecraft/world/entity/EntityLike;setChangeListener(Lnet/minecraft/world/entity/EntityChangeListener;)V
intermediary method_31744
Lnet/minecraft/class_5568;method_31744(Lnet/minecraft/class_5569;)V
official a
Ldxg;a(Ldxh;)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.- See Also:
- Implementation Note:
- The default implementation is not very efficient.
- Mappings:
Namespace Name Mixin selector named streamSelfAndPassengers
Lnet/minecraft/world/entity/EntityLike;streamSelfAndPassengers()Ljava/util/stream/Stream;
intermediary method_24204
Lnet/minecraft/class_5568;method_24204()Ljava/util/stream/Stream;
official cU
Ldxg;cU()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.
- See Also:
- Implementation Note:
- The default implementation is very costly.
- Mappings:
Namespace Name Mixin selector named streamPassengersAndSelf
Lnet/minecraft/world/entity/EntityLike;streamPassengersAndSelf()Ljava/util/stream/Stream;
intermediary method_31748
Lnet/minecraft/class_5568;method_31748()Ljava/util/stream/Stream;
official cV
Ldxg;cV()Ljava/util/stream/Stream;
-
setRemoved
- Mappings:
Namespace Name Mixin selector named setRemoved
Lnet/minecraft/world/entity/EntityLike;setRemoved(Lnet/minecraft/entity/Entity$RemovalReason;)V
intermediary method_31745
Lnet/minecraft/class_5568;method_31745(Lnet/minecraft/class_1297$class_5529;)V
official b
Ldxg;b(Lbsr$c;)V
-
shouldSave
boolean shouldSave()- Mappings:
Namespace Name Mixin selector named shouldSave
Lnet/minecraft/world/entity/EntityLike;shouldSave()Z
intermediary method_31746
Lnet/minecraft/class_5568;method_31746()Z
official dM
Ldxg;dM()Z
-
isPlayer
boolean isPlayer()- Mappings:
Namespace Name Mixin selector named isPlayer
Lnet/minecraft/world/entity/EntityLike;isPlayer()Z
intermediary method_31747
Lnet/minecraft/class_5568;method_31747()Z
official dN
Ldxg;dN()Z
-