当前位置: 首页>>代码示例>>Java>>正文


Java ExtendedBlockState类代码示例

本文整理汇总了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});
}
 
开发者ID:OPMCorp,项目名称:Qbar,代码行数:8,代码来源:BlockMultiblockBase.java

示例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);
}
 
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:29,代码来源:BlockDuctBase.java

示例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});
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:8,代码来源:BlockBeam.java

示例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});
}
 
开发者ID:JayAvery,项目名称:geomastery,代码行数:10,代码来源:BlockWall.java

示例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);
    }
}
 
开发者ID:InfinityRaider,项目名称:InfinityLib,代码行数:15,代码来源:BlockBase.java

示例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 });
}
 
开发者ID:Deadrik,项目名称:TFC2,代码行数:10,代码来源:BlockLeaves2.java

示例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[]{});
}
 
开发者ID:Deadrik,项目名称:TFC2,代码行数:11,代码来源:BlockFirepit.java

示例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);
}
 
开发者ID:Ipsis,项目名称:BuildersGuides,代码行数:8,代码来源:BlockMarker.java

示例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 }
			);
}
 
开发者ID:Team-IO,项目名称:taam,代码行数:8,代码来源:MachineMultipart.java

示例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 });
}
 
开发者ID:OpenMods,项目名称:OpenBlocks,代码行数:8,代码来源:BlockSprinkler.java

示例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});
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:7,代码来源:BlockVortexTube.java

示例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 });
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:7,代码来源:BlockElevatorBase.java

示例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);
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:7,代码来源:BlockPressureChamberGlass.java

示例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 });
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:7,代码来源:BlockPneumaticCraftCamo.java

示例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 });
}
 
开发者ID:TeamPneumatic,项目名称:pnc-repressurized,代码行数:7,代码来源:BlockPressureTube.java


注:本文中的net.minecraftforge.common.property.ExtendedBlockState类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。