Java 类net.minecraftforge.common.property.ExtendedBlockState 实例源码

项目:Qbar    文件:BlockMultiblockBase.java   
@Override
public BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this,
            new IProperty[]{BlockMultiblockBase.MULTIBLOCK_GAG, BlockMultiblockBase.FACING},
            new IUnlistedProperty[]{Properties.AnimationProperty});
}
项目:Toms-Mod    文件:BlockDuctBase.java   
@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);
}
项目:geomastery    文件:BlockBeam.java   
@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});
}
项目:geomastery    文件:BlockWall.java   
@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});
}
项目:InfinityLib    文件:BlockBase.java   
@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);
    }
}
项目:TFC2    文件:BlockLeaves2.java   
/*******************************************************************************
 * 3. Blockstate 
 *******************************************************************************/

@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{META_PROPERTY, BlockLeaves.FANCY}, new IUnlistedProperty[]{ B3DLoader.B3DFrameProperty.INSTANCE });
}
项目:TFC2    文件:BlockFirepit.java   
/*******************************************************************************
 * 3. Blockstate 
 *******************************************************************************/


@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{LIT, TOOL}, new IUnlistedProperty[]{});
}
项目:BuildersGuides    文件:BlockMarker.java   
@Override
protected BlockStateContainer createBlockState() {
    IUnlistedProperty[] unlistedProperties = new IUnlistedProperty[]{
            NORTH, SOUTH, EAST, WEST, UP, DOWN, FACING
    };
    return new ExtendedBlockState(this, new IProperty[0], unlistedProperties);
}
项目:taam    文件:MachineMultipart.java   
@Override
public BlockStateContainer createBlockState() {
    return new ExtendedBlockState(MCMultiPartMod.multipart,
            new IProperty[] { DIRECTION, VARIANT },
            new IUnlistedProperty[] { BlockMultipartContainer.PROPERTY_MULTIPART_CONTAINER, OBJModel.OBJProperty.instance }
            );
}
项目:TFC2    文件:BlockLeaves2.java   
/*******************************************************************************
 * 3. Blockstate 
 *******************************************************************************/

@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{META_PROPERTY, BlockLeaves.FANCY}, new IUnlistedProperty[]{ B3DLoader.B3DFrameProperty.INSTANCE });
}
项目:TFC2    文件:BlockFirepit.java   
/*******************************************************************************
 * 3. Blockstate 
 *******************************************************************************/


@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{LIT, TOOL}, new IUnlistedProperty[]{});
}
项目:OpenBlocks    文件:BlockSprinkler.java   
@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 });
}
项目:pnc-repressurized    文件:BlockVortexTube.java   
@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});
}
项目:pnc-repressurized    文件:BlockElevatorBase.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this,
            new IProperty[] { BlockPneumaticCraft.NORTH, BlockPneumaticCraft.SOUTH, BlockPneumaticCraft.WEST, BlockPneumaticCraft.EAST },
            new IUnlistedProperty[] { CAMO_STATE });
}
项目:pnc-repressurized    文件:BlockPressureChamberGlass.java   
@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);
}
项目:pnc-repressurized    文件:BlockPneumaticCraftCamo.java   
@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 });
}
项目:pnc-repressurized    文件:BlockPressureTube.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this,
            Arrays.copyOf(BlockPressureTube.CONNECTION_PROPERTIES_3, BlockPressureTube.CONNECTION_PROPERTIES_3.length),
            new IUnlistedProperty[] { CAMO_STATE });
}
项目:Etheric    文件:BlockPipe.java   
@Override
protected BlockStateContainer createBlockState() {
    IUnlistedProperty[] unlisted = new IUnlistedProperty[] { CONNECTIONS[0], CONNECTIONS[1], CONNECTIONS[2],
            CONNECTIONS[3], CONNECTIONS[4], CONNECTIONS[5] };
    return new ExtendedBlockState(this, new IProperty[] {}, unlisted);
}
项目:PurificatiMagicae    文件:BlockAbstractCrystalGlass.java   
@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{}, ConnectionsController.PROPS.values().toArray(new IUnlistedProperty[0]));
}
项目:PurificatiMagicae    文件:BlockAbstractWallIfTablet.java   
@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{HorizontalFacingController.FACING_H}, new IUnlistedProperty[]{IF_TIER});
}
项目:PurificatiMagicae    文件:BlockCodeStorage.java   
@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[] {HorizontalFacingController.FACING_H}, new IUnlistedProperty[] {UNLOCKED_PROPERTY});
}
项目:Solar    文件:BlockPhenomena.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[]{State.ACTIVE}, new IUnlistedProperty[]{Properties.AnimationProperty});
}
项目:SimpleTubes    文件:BlockTube.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] { UP, DOWN, NORTH, SOUTH, EAST, WEST, COLOR });
}
项目:CustomWorldGen    文件:BlockFluidBase.java   
@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[] { LEVEL }, FLUID_RENDER_PROPS.toArray(new IUnlistedProperty<?>[0]));
}
项目:BetterWithAddons    文件:BlockBrine.java   
@Nonnull
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[] { LEVEL, STATE }, FLUID_RENDER_PROPS.toArray(new IUnlistedProperty<?>[0]));
}
项目:TombManyGraves    文件:BlockDeath.java   
@Nonnull
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[] {}, new IUnlistedProperty[] {TMGStateProps.HELD_STATE, TMGStateProps.HELD_WORLD, TMGStateProps.HELD_POS});
}
项目:Qbar    文件:BlockExtractor.java   
@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{BlockExtractor.FACING, BlockExtractor.FILTER},
            new IUnlistedProperty[]{Properties.AnimationProperty});
}
项目:Qbar    文件:BlockBelt.java   
@Override
protected BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[]{BlockBelt.FACING, BlockBelt.SLOP, BlockBelt.ANIMATED},
            new IUnlistedProperty[]{QBarStateProperties.VISIBILITY_PROPERTY});
}
项目:Qbar    文件:BlockPipeBase.java   
@Override
public BlockStateContainer createBlockState()
{
    return new ExtendedBlockState(this, new IProperty[0],
            new IUnlistedProperty[]{QBarStateProperties.VISIBILITY_PROPERTY});
}
项目:Toms-Mod    文件:ItemPartTerminal.java   
@Override
protected BlockStateContainer createBlockState() {
    STATE = PropertyInteger.create("state", 0, 2);
    return new ExtendedBlockState(this, new IProperty[]{BlockTerminalBase.FACING, STATE}, new IUnlistedProperty[]{BlockTerminalBase.COLOR, BlockTerminalBase.STATE});
}
项目:Toms-Mod    文件:ItemPartPatternTerminal.java   
@Override
protected BlockStateContainer createBlockState() {
    STATE = PropertyInteger.create("state", 0, 2);
    return new ExtendedBlockState(this, new IProperty[]{BlockTerminalBase.FACING, STATE, BlockPatternTerminal.HAS_PATTERN}, new IUnlistedProperty[]{BlockTerminalBase.COLOR, BlockTerminalBase.STATE});
}
项目:Toms-Mod    文件:BlockPatternTerminal.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[]{FACING, HAS_PATTERN}, new IUnlistedProperty[]{COLOR, STATE});
}
项目:Toms-Mod    文件:AdvStorageSystemRouter.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[]{STATE}, new IUnlistedProperty[]{CONNECTIONS});
}
项目:Toms-Mod    文件:BlockTerminalBase.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[]{FACING}, new IUnlistedProperty[]{COLOR, STATE});
}
项目:Toms-Mod    文件:BlockHiddenRenderOld.java   
@Override
protected BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty<?>[0], new IUnlistedProperty<?>[]{DATA});
}
项目:Alchemy    文件:BlockSpellWovenTable.java   
@Override
public BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] { Properties.AnimationProperty });
}
项目:LP2    文件:PipeRouted.java   
@Override
public BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {Properties.AnimationProperty});
}
项目:LP2    文件:PipeChassisMkI.java   
@Override
public BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {Properties.AnimationProperty});
}
项目:LP2    文件:PipeBlocking.java   
@Override
public BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {Properties.AnimationProperty});
}
项目:LP2    文件:PipeBasic.java   
@Override
public BlockStateContainer createBlockState() {
    return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {Properties.AnimationProperty});
}