net.minecraft.block.state.BlockStateContainer Java Examples
The following examples show how to use
net.minecraft.block.state.BlockStateContainer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BlockMixin.java From customstuff4 with GNU General Public License v3.0 | 6 votes |
@Override protected BlockStateContainer createBlockState() { BlockStateContainer superState = super.createBlockState(); List<IProperty<?>> superProperties = Lists.newArrayList(superState.getProperties()); superProperties.addAll(Arrays.asList(getProperties())); if (superState instanceof ExtendedBlockState) { IUnlistedProperty<?>[] unlistedProperties = ((ExtendedBlockState) superState).getUnlistedProperties().toArray(new IUnlistedProperty<?>[0]); return new ExtendedBlockState(this, ContentBlockBaseWithSubtypes.insertSubtype(superProperties), unlistedProperties); } else { return new BlockStateContainer(this, ContentBlockBaseWithSubtypes.insertSubtype(superProperties)); } }
Example #2
Source File: BlockFirepit.java From TFC2 with GNU General Public License v3.0 | 5 votes |
/******************************************************************************* * 3. Blockstate *******************************************************************************/ @Override protected BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[]{LIT, TOOL}, new IUnlistedProperty[]{}); }
Example #3
Source File: BlockSand.java From TFC2 with GNU General Public License v3.0 | 5 votes |
/******************************************************************************* * 3. Blockstate *******************************************************************************/ @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[]{META_PROPERTY}); }
Example #4
Source File: BlockPL.java From Production-Line with MIT License | 5 votes |
@Override protected BlockStateContainer createBlockState() { if (this instanceof IOrientableBlock) { return new BlockStateContainer(this, PROPERTY_FACING); } else { return super.createBlockState(); } }
Example #5
Source File: VariantBlock.java From GregTech with GNU Lesser General Public License v3.0 | 5 votes |
@Override protected BlockStateContainer createBlockState() { Class<T> enumClass = GTUtility.getActualTypeParameter(getClass(), VariantBlock.class, 0); this.VARIANT = PropertyEnum.create("variant", enumClass); this.VALUES = enumClass.getEnumConstants(); return new BlockStateContainer(this, VARIANT); }
Example #6
Source File: BlockRubble.java From TFC2 with GNU General Public License v3.0 | 5 votes |
/******************************************************************************* * 3. Blockstate *******************************************************************************/ @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[]{META_PROPERTY}); }
Example #7
Source File: BlockDirt.java From TFC2 with GNU General Public License v3.0 | 5 votes |
/******************************************************************************* * 3. Blockstate *******************************************************************************/ @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { META_PROPERTY }); }
Example #8
Source File: BlockCrops.java From customstuff4 with GNU General Public License v3.0 | 5 votes |
@Override protected BlockStateContainer createBlockState() { if (ageProperty == null) ageProperty = BlockHelper.getCropAgeProperty(ContentBlockCrops.activeMaxAge); return new BlockStateContainer(this, ageProperty); }
Example #9
Source File: MixinBlockStateContainer.java From VanillaFix with MIT License | 5 votes |
protected IBlockState createState(ImmutableMap<IProperty<?>, Comparable<?>> properties, @Nullable ImmutableMap<IUnlistedProperty<?>, Optional<?>> unlistedProperties) { BlockStateContainer.StateImplementation state = createState(block, properties, unlistedProperties); if (state != null) { return state; } else { return NumericalBlockState.fromPropertyValueMap((BlockStateContainer) (Object) this, properties); } }
Example #10
Source File: Battery.java From EmergingTechnology with MIT License | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { FACING }); }
Example #11
Source File: BlockLogHorizontal2.java From TFC2 with GNU General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[]{META_PROPERTY, ROT_PROPERTY}); }
Example #12
Source File: BlockEnderUtilitiesPortal.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { FACING }); }
Example #13
Source File: Hydroponic.java From EmergingTechnology with MIT License | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { FACING, HAS_WATER }); }
Example #14
Source File: BlockSurfaceRockDeprecated.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { if (materialProperty == null) return new BlockStateContainer(this); return new BlockStateContainer(this, materialProperty); }
Example #15
Source File: BlockAlienWood.java From AdvancedRocketry with MIT License | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {LOG_AXIS}); }
Example #16
Source File: Bioreactor.java From EmergingTechnology with MIT License | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { FACING }); }
Example #17
Source File: BlockBeacon.java From Cyberware with MIT License | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); }
Example #18
Source File: BlockSpeedTelegraph.java From Valkyrien-Skies with Apache License 2.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, FACING); }
Example #19
Source File: BlockTraverseWoodLog.java From Traverse-Legacy-1-12-2 with MIT License | 4 votes |
protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[]{LOG_AXIS}); }
Example #20
Source File: PipeBlocking.java From Logistics-Pipes-2 with MIT License | 4 votes |
@Override public BlockStateContainer createBlockState() { return new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {Properties.AnimationProperty}); }
Example #21
Source File: Ladder.java From EmergingTechnology with MIT License | 4 votes |
protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); }
Example #22
Source File: DelayedStateBlock.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected final BlockStateContainer createBlockState() { return new BlockStateContainer(this); }
Example #23
Source File: BlockLogNaturalPalm.java From TFC2 with GNU General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[]{WOOD}); }
Example #24
Source File: BlockRoutiduct.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { AXIS }); }
Example #25
Source File: BlockUnpackager.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { FACING, CONNECTION }); }
Example #26
Source File: BlockPortalStone.java From TFC2 with GNU General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[]{META_PROPERTY}); }
Example #27
Source File: BlockSoulGlass.java From CommunityMod with GNU Lesser General Public License v2.1 | 4 votes |
protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, POWERED); }
Example #28
Source File: BlockMachine.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { TYPE, FACING_H }); }
Example #29
Source File: BlockCactus.java From TFC2 with GNU General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] { META_PROPERTY, BLOOM}); }
Example #30
Source File: GTBlockBattery.java From GT-Classic with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected BlockStateContainer createBlockState() { return new BlockStateContainerIC2(this, new IProperty[] { allFacings, active, chargelevel }); }