private ImmutableDirectionalData getDirectionalData(IBlockState blockState) {
   return ImmutableDataCachingUtil.getManipulator(
       ImmutableSpongeDirectionalData.class,
       DirectionResolver.getFor(blockState.getValue(BlockPistonMoving.FACING)));
 }
 private ImmutablePistonData getPistonTypeFor(IBlockState blockState) {
   return ImmutableDataCachingUtil.getManipulator(
       ImmutableSpongePistonData.class,
       (PistonType) (Object) blockState.getValue(BlockPistonMoving.TYPE));
 }
예제 #3
0
 private ImmutablePoweredData getIsPoweredFor(IBlockState blockState) {
   return ImmutableDataCachingUtil.getManipulator(
       ImmutableSpongePoweredData.class, blockState.getValue(BlockButton.POWERED));
 }