mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-19 12:09:12 +00:00
All devs and contributors should use the provided formatter settings. If your IDE does not support the format, the rules are simple, it is the default java formatting rules, with 200char line lengths and 1 extra line after class definitions.
37 lines
872 B
Java
37 lines
872 B
Java
package com.cricketcraft.chisel.block;
|
|
|
|
import java.util.Random;
|
|
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
import net.minecraft.util.IIcon;
|
|
import net.minecraft.world.World;
|
|
|
|
import com.cricketcraft.chisel.client.GeneralChiselClient;
|
|
|
|
public class BlockSnakestoneObsidian extends BlockSnakestone {
|
|
|
|
public IIcon[] particles = new IIcon[8];
|
|
|
|
public BlockSnakestoneObsidian(String iconPrefix) {
|
|
super(iconPrefix);
|
|
|
|
flipTopTextures = true;
|
|
|
|
}
|
|
|
|
@Override
|
|
public void randomDisplayTick(World world, int x, int y, int z, Random random) {
|
|
GeneralChiselClient.spawnSnakestoneObsidianFX(world, this, x, y, z);
|
|
}
|
|
|
|
@Override
|
|
public void registerBlockIcons(IIconRegister register) {
|
|
super.registerBlockIcons(register);
|
|
|
|
for (int i = 0; i < particles.length; i++) {
|
|
particles[i] = register.registerIcon(iconPrefix + "particles/" + i);
|
|
}
|
|
}
|
|
|
|
}
|