implement block break particles, version 1.0.2

This commit is contained in:
LabyStudio
2022-05-15 21:05:11 +02:00
parent 789ecdd2b4
commit 1e10dda0e2
11 changed files with 386 additions and 114 deletions
@@ -31,6 +31,10 @@ export default class Block {
return BlockRenderType.BLOCK;
}
getParticleTextureFace() {
return EnumBlockFace.TOP;
}
getTextureForFace(face) {
return this.textureSlotId;
}
@@ -52,6 +56,10 @@ export default class Block {
return 0xffffff;
}
getParticleColor(world, x, y, z) {
return this.getColor(world, x, y, z, this.getParticleTextureFace());
}
getLightValue() {
return 0;
}
@@ -26,6 +26,10 @@ export default class BlockGrass extends Block {
return world.minecraft.grassColorizer.getColor(temperature, humidity);
}
getParticleTextureFace() {
return EnumBlockFace.NORTH;
}
getTextureForFace(face) {
switch (face) {
case EnumBlockFace.TOP: