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