本文整理汇总了Java中net.minecraft.server.EntityComplexPart类的典型用法代码示例。如果您正苦于以下问题:Java EntityComplexPart类的具体用法?Java EntityComplexPart怎么用?Java EntityComplexPart使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EntityComplexPart类属于net.minecraft.server包,在下文中一共展示了EntityComplexPart类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeEntityActivationState
import net.minecraft.server.EntityComplexPart; //导入依赖的package包/类
/**
* These entities are excluded from Activation range checks.
*
* @param entity
* @param world
* @return boolean If it should always tick.
*/
public static boolean initializeEntityActivationState(Entity entity, SpigotWorldConfig config)
{
if ( ( entity.activationType == 3 && config.miscActivationRange == 0 )
|| ( entity.activationType == 2 && config.animalActivationRange == 0 )
|| ( entity.activationType == 1 && config.monsterActivationRange == 0 )
|| entity instanceof EntityHuman
|| entity instanceof EntityProjectile
|| entity instanceof EntityEnderDragon
|| entity instanceof EntityComplexPart
|| entity instanceof EntityWither
|| entity instanceof EntityFireball
|| entity instanceof EntityWeather
|| entity instanceof EntityTNTPrimed
|| entity instanceof EntityEnderCrystal
|| entity instanceof EntityFireworks )
{
return true;
}
return false;
}
示例2: getParts
import net.minecraft.server.EntityComplexPart; //导入依赖的package包/类
public Set<ComplexEntityPart> getParts() {
Builder<ComplexEntityPart> builder = ImmutableSet.builder();
for (EntityComplexPart part : getHandle().children) {
builder.add((ComplexEntityPart) part.getBukkitEntity());
}
return builder.build();
}
示例3: CraftEnderDragonPart
import net.minecraft.server.EntityComplexPart; //导入依赖的package包/类
public CraftEnderDragonPart(CraftServer server, EntityComplexPart entity) {
super(server, entity);
}
示例4: getHandle
import net.minecraft.server.EntityComplexPart; //导入依赖的package包/类
@Override
public EntityComplexPart getHandle() {
return (EntityComplexPart) entity;
}
示例5: CraftComplexPart
import net.minecraft.server.EntityComplexPart; //导入依赖的package包/类
public CraftComplexPart(CraftServer server, EntityComplexPart entity) {
super(server, entity);
}