mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-22 04:52:09 +00:00
add
This commit is contained in:
1 parent
a7f00c1830
commit
29ef77c388
1 file changed
+13
@@ -5,6 +5,7 @@ import java.util.Objects;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import appeng.util.Platform;
|
||||
import net.minecraft.inventory.InventoryCrafting;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -204,4 +205,16 @@ public class FluidPatternDetails implements ICraftingPatternDetails, Comparable<
|
||||
}
|
||||
return stacks;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void patternJustUsed() {
|
||||
NBTTagCompound tag = Platform.openNbtData(patternStack);
|
||||
tag.setLong("lastUsed", System.currentTimeMillis());
|
||||
}
|
||||
|
||||
@Override
|
||||
public long patternLastUsed() {
|
||||
NBTTagCompound tag = Platform.openNbtData(patternStack);
|
||||
return tag.getLong("lastUsed");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user