本文整理了Java中net.minecraft.entity.Entity.canBePushed()
方法的一些代码示例,展示了Entity.canBePushed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.canBePushed()
方法的具体详情如下:
包路径:net.minecraft.entity.Entity
类名称:Entity
方法名:canBePushed
暂无
代码示例来源:origin: CyclopsMC/EvilCraft
public boolean apply(Entity p_apply_1_) {
return p_apply_1_.canBePushed();
}
}));
代码示例来源:origin: iLexiconn/LLibrary
public void collideWithNearbyEntities() {
List<Entity> entities = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getEntityBoundingBox().expand(0.20000000298023224D, 0.0D, 0.20000000298023224D));
entities.stream().filter(entity -> entity != this.parent && !(entity instanceof PartEntity) && entity.canBePushed()).forEach(entity -> entity.applyEntityCollision(this.parent));
}
代码示例来源:origin: Mine-and-blade-admin/Battlegear2
ItemStack offhand = this.player.getHeldItemOffhand();
if (offhand.getItem() instanceof IShield) {
if (entityHit.canBePushed()) {
double d0 = entityHit.posX - this.player.posX;
double d1;
代码示例来源:origin: CyclopsMC/EvilCraft
for (int l = 0; l < list.size(); ++l) {
Entity entity = list.get(l);
if (entity != rider && entity.canBePushed() && !(entity instanceof EntityBroom)) {
for (Map.Entry<BroomModifier, Float> entry : getModifiers().entrySet()) {
for (BroomModifier.ICollisionListener listener : entry.getKey().getCollisionListeners()) {
内容来源于网络,如有侵权,请联系作者删除!