@Override public ImmutableValue<Boolean> willDrop() { return ImmutableDataCachingUtil.getValue( ImmutableSpongeValue.class, Keys.SHOULD_DROP, this.value, true); }
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)); }
private ImmutablePoweredData getIsPoweredFor(IBlockState blockState) { return ImmutableDataCachingUtil.getManipulator( ImmutableSpongePoweredData.class, blockState.getValue(BlockButton.POWERED)); }