use of net.minecraft.particles.RedstoneParticleData in project Ceramics by KnightMiner.
the class PouringFaucetBlock method addParticles.
/* Display */
/**
* Adds particles to the faucet
* @param state Faucet state
* @param worldIn World instance
* @param pos Faucet position
*/
private static void addParticles(BlockState state, IWorld worldIn, BlockPos pos) {
Direction direction = state.get(FACING);
double x = (double) pos.getX() + 0.5D - 0.3D * (double) direction.getXOffset();
double y = (double) pos.getY() + 0.5D - 0.3D * (double) direction.getYOffset();
double z = (double) pos.getZ() + 0.5D - 0.3D * (double) direction.getZOffset();
worldIn.addParticle(new RedstoneParticleData(1.0F, 0.0F, 0.0F, 0.5f), x, y, z, 0.0D, 0.0D, 0.0D);
}
Aggregations