コード例 #1
0
 @Override
 public ImmutableValue<Boolean> willDrop() {
   return ImmutableDataCachingUtil.getValue(
       ImmutableSpongeValue.class, Keys.SHOULD_DROP, this.value, true);
 }
コード例 #2
0
 private ImmutableDirectionalData getDirectionalData(IBlockState blockState) {
   return ImmutableDataCachingUtil.getManipulator(
       ImmutableSpongeDirectionalData.class,
       DirectionResolver.getFor(blockState.getValue(BlockPistonMoving.FACING)));
 }
コード例 #3
0
 private ImmutablePistonData getPistonTypeFor(IBlockState blockState) {
   return ImmutableDataCachingUtil.getManipulator(
       ImmutableSpongePistonData.class,
       (PistonType) (Object) blockState.getValue(BlockPistonMoving.TYPE));
 }
コード例 #4
0
 private ImmutablePoweredData getIsPoweredFor(IBlockState blockState) {
   return ImmutableDataCachingUtil.getManipulator(
       ImmutableSpongePoweredData.class, blockState.getValue(BlockButton.POWERED));
 }