本文整理了Java中net.minecraft.entity.Entity.doesEntityNotTriggerPressurePlate()
方法的一些代码示例,展示了Entity.doesEntityNotTriggerPressurePlate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.doesEntityNotTriggerPressurePlate()
方法的具体详情如下:
包路径:net.minecraft.entity.Entity
类名称:Entity
方法名:doesEntityNotTriggerPressurePlate
暂无
代码示例来源:origin: Vazkii/Quark
@Override
protected int computeRedstoneStrength(World worldIn, BlockPos pos) {
AxisAlignedBB axisalignedbb = PRESSURE_AABB.offset(pos);
List<? extends Entity> list = getValidEntities(worldIn, axisalignedbb);
if(!list.isEmpty())
for(Entity entity : list)
if(!entity.doesEntityNotTriggerPressurePlate())
return 15;
return 0;
}
代码示例来源:origin: Esteemed-Innovation/Esteemed-Innovation
@Override
protected int computeRedstoneStrength(World world, BlockPos pos) {
List<T> entities = world.getEntitiesWithinAABB(entityClass, PRESSURE_AABB.offset(pos));
for (T entity : entities) {
if (!entity.doesEntityNotTriggerPressurePlate() && predicate.test(entity)) {
return 15;
}
}
return 0;
}
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public boolean apply(@Nullable Entity entity) {
if (entity == null) {
return false;
}
if (!entity.isEntityAlive() || entity.doesEntityNotTriggerPressurePlate() || ((entity instanceof EntityPlayer) && ((EntityPlayer) entity).isSpectator())
|| (capturedMob != null && !capturedMob.isSameType(entity))) {
return false;
}
if (searchClass.isInstance(entity) && whiteClasses.isEmpty()) {
return true;
}
for (Class<? extends Entity> clazz : whiteClasses) {
if (clazz.isInstance(entity)) {
return true;
}
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!