use of com.eintosti.buildsystem.object.world.BuildWorld in project BuildSystem by Trichtern.
the class BlockPhysicsListener method onEntityExplode.
@EventHandler
public void onEntityExplode(EntityExplodeEvent event) {
Location location = event.getLocation();
World bukkitWorld = location.getWorld();
BuildWorld buildWorld = worldManager.getBuildWorld(bukkitWorld.getName());
if (buildWorld != null && !buildWorld.isExplosions()) {
event.setCancelled(true);
}
}
use of com.eintosti.buildsystem.object.world.BuildWorld in project BuildSystem by Trichtern.
the class BlockPhysicsListener method onLeavesDecay.
@EventHandler
public void onLeavesDecay(LeavesDecayEvent event) {
Block block = event.getBlock();
BuildWorld buildWorld = worldManager.getBuildWorld(block.getWorld().getName());
if (buildWorld != null && !buildWorld.isPhysics()) {
event.setCancelled(true);
}
}
use of com.eintosti.buildsystem.object.world.BuildWorld in project BuildSystem by Trichtern.
the class BlockPhysicsListener method onBlockForm.
@EventHandler
public void onBlockForm(BlockFormEvent event) {
Block block = event.getBlock();
BuildWorld buildWorld = worldManager.getBuildWorld(block.getWorld().getName());
if (buildWorld != null && !buildWorld.isPhysics()) {
event.setCancelled(true);
}
}
use of com.eintosti.buildsystem.object.world.BuildWorld in project BuildSystem by Trichtern.
the class BlockPhysicsListener method onBlockGrow.
@EventHandler
public void onBlockGrow(BlockGrowEvent event) {
Block block = event.getBlock();
BuildWorld buildWorld = worldManager.getBuildWorld(block.getWorld().getName());
if (buildWorld != null && !buildWorld.isPhysics()) {
event.setCancelled(true);
}
}
use of com.eintosti.buildsystem.object.world.BuildWorld in project BuildSystem by Trichtern.
the class BlockPhysicsListener method onBlockExplode.
@EventHandler
public void onBlockExplode(BlockExplodeEvent event) {
Block block = event.getBlock();
World bukkitWorld = block.getWorld();
BuildWorld buildWorld = worldManager.getBuildWorld(bukkitWorld.getName());
if (buildWorld != null && !buildWorld.isExplosions()) {
event.setCancelled(true);
}
}
Aggregations