EaglerForge/patches/minecraft/net/minecraft/item/ItemStack.edit.java

42 lines
884 B
Java

# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> DELETE 2 @ 2 : 5
> DELETE 3 @ 3 : 4
> INSERT 1 : 9 @ 1
+ import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
+ import net.lax1dude.eaglercraft.v1_8.HString;
+ import java.util.Set;
+
+ import com.google.common.collect.HashMultimap;
+ import com.google.common.collect.Lists;
+ import com.google.common.collect.Multimap;
+
> DELETE 13 @ 13 : 17
> CHANGE 185 : 186 @ 185 : 186
~ public boolean attemptDamageItem(int amount, EaglercraftRandom rand) {
> CHANGE 249 : 250 @ 249 : 250
~ s = s + HString.format("#%04d/%d%s",
> CHANGE 2 : 3 @ 2 : 3
~ s = s + HString.format("#%04d%s", new Object[] { Integer.valueOf(i), s1 });
> CHANGE 56 : 57 @ 56 : 57
~ for (Entry entry : (Set<Entry>) multimap.entries()) {
> EOF