本文整理汇总了Java中net.minecraftforge.common.property.ExtendedBlockState类的典型用法代码示例。如果您正苦于以下问题:Java ExtendedBlockState类的具体用法?Java ExtendedBlockState怎么用?Java ExtendedBlockState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExtendedBlockState类属于net.minecraftforge.common.property包,在下文中一共展示了ExtendedBlockState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
public BlockStateContainer createBlockState()
{
return new ExtendedBlockState(this,
new IProperty[]{BlockMultiblockBase.MULTIBLOCK_GAG, BlockMultiblockBase.FACING},
new IUnlistedProperty[]{Properties.AnimationProperty});
}
示例2: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
public BlockStateContainer createBlockState() {
if (maxStates.get() == -1) {
maxIntValueInProperties = -1;
propertyList = null;
} else {
maxIntValueInProperties = Math.min(maxStates.get(), 3);
if (!propertyListMap.containsKey(maxIntValueInProperties)) {
PropertyInteger UP = PropertyInteger.create("up", 0, maxIntValueInProperties);
PropertyInteger DOWN = PropertyInteger.create("down", 0, maxIntValueInProperties);
PropertyInteger NORTH = PropertyInteger.create("north", 0, maxIntValueInProperties);
PropertyInteger EAST = PropertyInteger.create("east", 0, maxIntValueInProperties);
PropertyInteger SOUTH = PropertyInteger.create("south", 0, maxIntValueInProperties);
PropertyInteger WEST = PropertyInteger.create("west", 0, maxIntValueInProperties);
propertyListMap.put(maxIntValueInProperties, new PropertyList(UP, DOWN, NORTH, EAST, SOUTH, WEST));
}
propertyList = propertyListMap.get(maxIntValueInProperties);
}
IProperty<?>[] properties = getProperties();
IUnlistedProperty<?>[] unlistedProperties = getUnlistedProperties();
if (properties == null) {
properties = new IProperty[]{propertyList.DOWN, propertyList.UP, propertyList.NORTH, propertyList.SOUTH, propertyList.WEST, propertyList.EAST};
}
if (unlistedProperties != null && unlistedProperties.length > 0)
return new ExtendedBlockState(this, properties, unlistedProperties);
else
return new BlockStateContainer(this, properties);
}
示例3: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
public BlockStateContainer createBlockState() {
return new ExtendedBlockState(this, new IProperty[0],
new IUnlistedProperty[] {AXIS, FRONTBEAM, BACKBEAM,
FLOOR, FRONT, RIGHT, BACK, LEFT, FL, FR, BL, BR});
}
示例4: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
public BlockStateContainer createBlockState() {
return new ExtendedBlockState(this,
new IProperty[] {TOP, BOTTOM, DOUBLE},
new IUnlistedProperty[] {NORTH, EAST, SOUTH, WEST,
N_TOP, E_TOP, S_TOP, W_TOP, N_BOTTOM, E_BOTTOM, S_BOTTOM,
W_BOTTOM, N_DOUBLE, E_DOUBLE, S_DOUBLE, W_DOUBLE});
}
示例5: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected final BlockStateContainer createBlockState() {
InfinityProperty[] propertyArray = this.getPropertyArray();
IProperty[] properties = new IProperty[propertyArray.length];
for(int i = 0; i < properties.length; i++) {
properties[i] = propertyArray[i].getProperty();
}
IUnlistedProperty[] uprops = getUnlistedPropertyArray();
if (uprops.length < 1) {
return new BlockStateContainer(this, properties);
} else {
return new ExtendedBlockState(this, properties, uprops);
}
}
示例6: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
/*******************************************************************************
* 3. Blockstate
*******************************************************************************/
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState(this, new IProperty[]{META_PROPERTY, BlockLeaves.FANCY}, new IUnlistedProperty[]{ B3DLoader.B3DFrameProperty.INSTANCE });
}
示例7: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
/*******************************************************************************
* 3. Blockstate
*******************************************************************************/
@Override
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState(this, new IProperty[]{LIT, TOOL}, new IUnlistedProperty[]{});
}
示例8: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected BlockStateContainer createBlockState() {
IUnlistedProperty[] unlistedProperties = new IUnlistedProperty[]{
NORTH, SOUTH, EAST, WEST, UP, DOWN, FACING
};
return new ExtendedBlockState(this, new IProperty[0], unlistedProperties);
}
示例9: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
public BlockStateContainer createBlockState() {
return new ExtendedBlockState(MCMultiPartMod.multipart,
new IProperty[] { DIRECTION, VARIANT },
new IUnlistedProperty[] { BlockMultipartContainer.PROPERTY_MULTIPART_CONTAINER, OBJModel.OBJProperty.instance }
);
}
示例10: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected BlockStateContainer createBlockState() {
// 1.8.9 Hack, crashes otherwise
return new ExtendedBlockState(this,
new IProperty[] { getPropertyOrientation(), BlockLiquid.LEVEL, Properties.StaticProperty },
new IUnlistedProperty[] { EvalModelState.PROPERTY });
}
示例11: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected BlockStateContainer createBlockState() {
return new ExtendedBlockState(this,
new IProperty[]{ROTATION, BlockPneumaticCraft.DOWN, BlockPneumaticCraft.UP, BlockPneumaticCraft.NORTH, BlockPneumaticCraft.SOUTH, BlockPneumaticCraft.WEST, BlockPneumaticCraft.EAST},
new IUnlistedProperty[]{OBJProperty.INSTANCE});
}
示例12: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected BlockStateContainer createBlockState() {
return new ExtendedBlockState(this,
new IProperty[] { BlockPneumaticCraft.NORTH, BlockPneumaticCraft.SOUTH, BlockPneumaticCraft.WEST, BlockPneumaticCraft.EAST },
new IUnlistedProperty[] { CAMO_STATE });
}
示例13: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected BlockStateContainer createBlockState() {
IProperty[] listedProperties = new IProperty[0]; // no listed properties
IUnlistedProperty[] unlistedProperties = new IUnlistedProperty[] { DOWN, UP, NORTH, SOUTH, WEST, EAST };
return new ExtendedBlockState(this, listedProperties, unlistedProperties);
}
示例14: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected BlockStateContainer createBlockState() {
return isRotatable() ?
new ExtendedBlockState(this, new IProperty[] { ROTATION } , new IUnlistedProperty[] { CAMO_STATE }) :
new ExtendedBlockState(this, new IProperty[] { } , new IUnlistedProperty[] { CAMO_STATE });
}
示例15: createBlockState
import net.minecraftforge.common.property.ExtendedBlockState; //导入依赖的package包/类
@Override
protected BlockStateContainer createBlockState() {
return new ExtendedBlockState(this,
Arrays.copyOf(BlockPressureTube.CONNECTION_PROPERTIES_3, BlockPressureTube.CONNECTION_PROPERTIES_3.length),
new IUnlistedProperty[] { CAMO_STATE });
}