Continue migrating terminology to "container"

Clean up documentation a bit, prettify
This commit is contained in:
Jikoo
2022-05-15 10:45:52 -04:00
parent 6ad6e0c6bc
commit 0b761a6fc3
16 changed files with 249 additions and 206 deletions

View File

@@ -86,8 +86,8 @@ public class AnySilentContainer implements IAnySilentContainer {
}
@Override
public boolean isShulkerBlocked(ShulkerBox box) {
org.bukkit.World bukkitWorld = box.getWorld();
public boolean isShulkerBlocked(@NotNull ShulkerBox shulkerBox) {
org.bukkit.World bukkitWorld = shulkerBox.getWorld();
if (!(bukkitWorld instanceof CraftWorld)) {
bukkitWorld = Bukkit.getWorld(bukkitWorld.getUID());
}
@@ -99,7 +99,7 @@ public class AnySilentContainer implements IAnySilentContainer {
}
final ServerLevel world = craftWorld.getHandle();
final BlockPos blockPosition = new BlockPos(box.getX(), box.getY(), box.getZ());
final BlockPos blockPosition = new BlockPos(shulkerBox.getX(), shulkerBox.getY(), shulkerBox.getZ());
final BlockEntity tile = world.getBlockEntity(blockPosition);
if (!(tile instanceof ShulkerBoxBlockEntity shulkerBoxBlockEntity)