Package net.minecraft.world.entity
Interface EntityLike
- All Known Implementing Classes:
AbstractClientPlayerEntity
,AbstractDecorationEntity
,AbstractDonkeyEntity
,AbstractFireballEntity
,AbstractMinecartEntity
,AbstractPiglinEntity
,AbstractSkeletonEntity
,AmbientEntity
,AnimalEntity
,AreaEffectCloudEntity
,ArmorStandEntity
,ArrowEntity
,AxolotlEntity
,BatEntity
,BeeEntity
,BlazeEntity
,BoatEntity
,CatEntity
,CaveSpiderEntity
,ChestMinecartEntity
,ChickenEntity
,ClientPlayerEntity
,CodEntity
,CommandBlockMinecartEntity
,CowEntity
,CreeperEntity
,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
,FurnaceMinecartEntity
,GhastEntity
,GiantEntity
,GlowSquidEntity
,GolemEntity
,GuardianEntity
,HoglinEntity
,HopperMinecartEntity
,HorseBaseEntity
,HorseEntity
,HostileEntity
,HuskEntity
,IllagerEntity
,IllusionerEntity
,IronGolemEntity
,ItemEntity
,ItemFrameEntity
,LeashKnotEntity
,LightningEntity
,LivingEntity
,LlamaEntity
,LlamaSpitEntity
,MagmaCubeEntity
,MerchantEntity
,MinecartEntity
,MobEntity
,MooshroomEntity
,MuleEntity
,OcelotEntity
,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
,SnowballEntity
,SnowGolemEntity
,SpawnerMinecartEntity
,SpectralArrowEntity
,SpellcastingIllagerEntity
,SpiderEntity
,SquidEntity
,StorageMinecartEntity
,StrayEntity
,StriderEntity
,TameableEntity
,TameableShoulderEntity
,ThrownEntity
,ThrownItemEntity
,TntEntity
,TntMinecartEntity
,TraderLlamaEntity
,TridentEntity
,TropicalFishEntity
,TurtleEntity
,VexEntity
,VillagerEntity
,VindicatorEntity
,WanderingTraderEntity
,WaterCreatureEntity
,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 official clc
intermediary net/minecraft/class_5568
named net/minecraft/world/entity/EntityLike
-
Method Summary
Modifier and Type Method Description BlockPos
getBlockPos()
Box
getBoundingBox()
int
getId()
Returns the network ID of this entity.UUID
getUuid()
boolean
isPlayer()
void
setListener(EntityChangeListener listener)
void
setRemoved(Entity.RemovalReason reason)
boolean
shouldSave()
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.
-
Method Details
-
getId
int getId()Returns the network ID of this entity.- Mappings:
Namespace Name Mixin selector official Y
Lclc;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 cc
Lclc;cc()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 cM
Lclc;cM()Lfx;
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 cm
Lclc;cm()Ldit;
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
- Mappings:
Namespace Name Mixin selector official a
Lclc;a(Lcld;)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
-
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:
Entity.streamSelfAndPassengers()
- Implementation Note:
- The default implementation is very costly.
- Mappings:
Namespace Name Mixin selector official cy
Lclc;cy()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
- Mappings:
Namespace Name Mixin selector official b
Lclc;b(Laqw$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 de
Lclc;de()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 df
Lclc;df()Z
intermediary method_31747
Lnet/minecraft/class_5568;method_31747()Z
named isPlayer
Lnet/minecraft/world/entity/EntityLike;isPlayer()Z
-