Run formatter
This commit is contained in:
parent
61c44a831b
commit
08258fd6ef
606 changed files with 13464 additions and 22975 deletions
|
@ -7,10 +7,8 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemSigilCompression extends ItemSigilToggleableBase
|
||||
{
|
||||
public ItemSigilCompression()
|
||||
{
|
||||
public class ItemSigilCompression extends ItemSigilToggleableBase {
|
||||
public ItemSigilCompression() {
|
||||
super("compression", 200);
|
||||
}
|
||||
|
||||
|
@ -18,8 +16,7 @@ public class ItemSigilCompression extends ItemSigilToggleableBase
|
|||
// TODO for now, there is a semi-working system in place
|
||||
|
||||
@Override
|
||||
public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected)
|
||||
{
|
||||
public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected) {
|
||||
if (true)
|
||||
return; // TODO - Rewrite compression system
|
||||
|
||||
|
@ -28,8 +25,7 @@ public class ItemSigilCompression extends ItemSigilToggleableBase
|
|||
|
||||
ItemStack compressedStack = CompressionRegistry.compressInventory(player.inventory.mainInventory.toArray(new ItemStack[player.inventory.mainInventory.size()]), world);
|
||||
|
||||
if (compressedStack != null)
|
||||
{
|
||||
if (compressedStack != null) {
|
||||
EntityItem entityItem = new EntityItem(world, player.posX, player.posY, player.posZ, compressedStack);
|
||||
world.spawnEntity(entityItem);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue