MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / apply

Method apply

src/main/java/net/minecraft/world/WorldServer.java:444–447  ·  view source on GitHub ↗
(EntityLivingBase p_apply_1_)

Source from the content-addressed store, hash-verified

442 List<EntityLivingBase> list = this.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb, new Predicate<EntityLivingBase>()
443 {
444 public boolean apply(EntityLivingBase p_apply_1_)
445 {
446 return p_apply_1_ != null && p_apply_1_.isEntityAlive() && WorldServer.this.canSeeSky(p_apply_1_.getPosition());
447 }
448 });
449 return !list.isEmpty() ? list.get(this.rand.nextInt(list.size())).getPosition() : blockpos;
450 }

Callers

nothing calls this directly

Calls 3

getPositionMethod · 0.65
isEntityAliveMethod · 0.45
canSeeSkyMethod · 0.45

Tested by

no test coverage detected