added random floor colour
This commit is contained in:
parent
bc082bb87d
commit
73604bfa1a
@ -21,6 +21,7 @@ import org.bukkit.block.BlockState;
|
|||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
import org.bukkit.inventory.meta.FireworkMeta;
|
import org.bukkit.inventory.meta.FireworkMeta;
|
||||||
|
import org.bukkit.material.Wool;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
@ -331,8 +332,9 @@ public class DiscoParty {
|
|||||||
sheep.setColor(discoColours[(r.nextInt(discoColours.length))]);
|
sheep.setColor(discoColours[(r.nextInt(discoColours.length))]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void randomizeFloorColor(Block block) {
|
void randomizeFloorColour(Block block) {
|
||||||
// Randomize them colors, boi
|
block.setType(Material.WOOL);
|
||||||
|
block.setData(discoColours[(r.nextInt(discoColours.length))].getData());
|
||||||
}
|
}
|
||||||
|
|
||||||
void jump(Entity entity) {
|
void jump(Entity entity) {
|
||||||
@ -426,7 +428,7 @@ public class DiscoParty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (Block block : this.floorBlocks) {
|
for (Block block : this.floorBlocks) {
|
||||||
this.randomizeFloorColor(block);
|
this.randomizeFloorColour(block);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user