@Override public BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{BlockMultiblockBase.MULTIBLOCK_GAG, BlockMultiblockBase.FACING}, new IUnlistedProperty[]{Properties.AnimationProperty}); }
@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); }
@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}); }
@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}); }
@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); } }
/******************************************************************************* * 3. Blockstate *******************************************************************************/ @Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{META_PROPERTY, BlockLeaves.FANCY}, new IUnlistedProperty[]{ B3DLoader.B3DFrameProperty.INSTANCE }); }
/******************************************************************************* * 3. Blockstate *******************************************************************************/ @Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{LIT, TOOL}, new IUnlistedProperty[]{}); }
@Override protected BlockStateContainer createBlockState() { IUnlistedProperty[] unlistedProperties = new IUnlistedProperty[]{ NORTH, SOUTH, EAST, WEST, UP, DOWN, FACING }; return new ExtendedBlockState(this, new IProperty[0], unlistedProperties); }
@Override public BlockStateContainer createBlockState() { return new ExtendedBlockState(MCMultiPartMod.multipart, new IProperty[] { DIRECTION, VARIANT }, new IUnlistedProperty[] { BlockMultipartContainer.PROPERTY_MULTIPART_CONTAINER, OBJModel.OBJProperty.instance } ); }
@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 }); }
@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}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[] { BlockPneumaticCraft.NORTH, BlockPneumaticCraft.SOUTH, BlockPneumaticCraft.WEST, BlockPneumaticCraft.EAST }, new IUnlistedProperty[] { CAMO_STATE }); }
@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); }
@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 }); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, Arrays.copyOf(BlockPressureTube.CONNECTION_PROPERTIES_3, BlockPressureTube.CONNECTION_PROPERTIES_3.length), new IUnlistedProperty[] { CAMO_STATE }); }
@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); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{}, ConnectionsController.PROPS.values().toArray(new IUnlistedProperty[0])); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{HorizontalFacingController.FACING_H}, new IUnlistedProperty[]{IF_TIER}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[] {HorizontalFacingController.FACING_H}, new IUnlistedProperty[] {UNLOCKED_PROPERTY}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{State.ACTIVE}, new IUnlistedProperty[]{Properties.AnimationProperty}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] { UP, DOWN, NORTH, SOUTH, EAST, WEST, COLOR }); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[] { LEVEL }, FLUID_RENDER_PROPS.toArray(new IUnlistedProperty<?>[0])); }
@Nonnull @Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[] { LEVEL, STATE }, FLUID_RENDER_PROPS.toArray(new IUnlistedProperty<?>[0])); }
@Nonnull @Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[] {}, new IUnlistedProperty[] {TMGStateProps.HELD_STATE, TMGStateProps.HELD_WORLD, TMGStateProps.HELD_POS}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{BlockExtractor.FACING, BlockExtractor.FILTER}, new IUnlistedProperty[]{Properties.AnimationProperty}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{BlockBelt.FACING, BlockBelt.SLOP, BlockBelt.ANIMATED}, new IUnlistedProperty[]{QBarStateProperties.VISIBILITY_PROPERTY}); }
@Override public BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[]{QBarStateProperties.VISIBILITY_PROPERTY}); }
@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}); }
@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}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{FACING, HAS_PATTERN}, new IUnlistedProperty[]{COLOR, STATE}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{STATE}, new IUnlistedProperty[]{CONNECTIONS}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{FACING}, new IUnlistedProperty[]{COLOR, STATE}); }
@Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty<?>[0], new IUnlistedProperty<?>[]{DATA}); }
@Override public BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] { Properties.AnimationProperty }); }
@Override public BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {Properties.AnimationProperty}); }