Split up and reorganise WizardryUtilities

This commit is contained in:
Electroblob77
2020-06-13 23:29:01 +01:00
parent 57e96458d5
commit 238b9d04bb
189 changed files with 1724 additions and 1731 deletions
@@ -7,8 +7,8 @@ import electroblob.wizardry.packet.PacketControlInput.Message;
import electroblob.wizardry.registry.Spells;
import electroblob.wizardry.spell.Possession;
import electroblob.wizardry.spell.Resurrection;
import electroblob.wizardry.util.InventoryUtils;
import electroblob.wizardry.util.SpellModifiers;
import electroblob.wizardry.util.WizardryUtilities;
import io.netty.buffer.ByteBuf;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
@@ -75,7 +75,7 @@ public class PacketControlInput implements IMessageHandler<Message, IMessage> {
if(player.isDead && Resurrection.getRemainingWaitTime(player.deathTime) == 0){
ItemStack stack = WizardryUtilities.getHotbar(player).stream()
ItemStack stack = InventoryUtils.getHotbar(player).stream()
.filter(s -> Resurrection.canStackResurrect(s, player)).findFirst().orElse(null);
if(stack != null){
@@ -96,7 +96,7 @@ public class PacketControlInput implements IMessageHandler<Message, IMessage> {
if(player.isDead){
ItemStack stack = WizardryUtilities.getHotbar(player).stream()
ItemStack stack = InventoryUtils.getHotbar(player).stream()
.filter(s -> Resurrection.canStackResurrect(s, player)).findFirst().orElse(null);
if(stack != null){