Update to 1.17

Update to Official classnames
Patchwork
Make the game compile and run
Merge in the new HUD overlay API
Merge in the new render properties API
PEEL
Use Gradle 7.2 snapshot to fix eclipse integration bug in 7.1, Would use 7.0 but FG needs 7.1 for some reason.
New FML installer
Update to 1.17.1

Co-authored-by: LexManos <[email protected]>
Co-authored-by: SizableShrimp <[email protected]>
Co-authored-by: cpw <[email protected]>
Co-authored-by: Curle <[email protected]>
Co-authored-by: Unnoen <[email protected]>
Co-authored-by: covers1624 <[email protected]>
Co-authored-by: DaemonUmbra <[email protected]>
Co-authored-by: gigaherz <[email protected]>
Signed-off-by: SizableShrimp <[email protected]>
This commit is contained in:
authored and Curle committed 2021-07-22 19:57:02 +01:00
1 parent 064ae6961b
commit be5446b91c
1990 files changed
+35661 -37544

No files matched your search

@@ -19,11 +19,7 @@
package net.minecraftforge.energy;
import net.minecraft.nbt.INBT;
import net.minecraft.nbt.IntNBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.*;
import net.minecraftforge.common.capabilities.Capability.IStorage;
public class CapabilityEnergy
{
@@ -32,22 +28,6 @@ public class CapabilityEnergy
public static void register()
{
CapabilityManager.INSTANCE.register(IEnergyStorage.class, new IStorage<IEnergyStorage>()
{
@Override
public INBT writeNBT(Capability<IEnergyStorage> capability, IEnergyStorage instance, Direction side)
{
return IntNBT.valueOf(instance.getEnergyStored());
}
@Override
public void readNBT(Capability<IEnergyStorage> capability, IEnergyStorage instance, Direction side, INBT nbt)
{
if (!(instance instanceof EnergyStorage))
throw new IllegalArgumentException("Can not deserialize to an instance that isn't the default implementation");
((EnergyStorage)instance).energy = ((IntNBT)nbt).getAsInt();
}
},
() -> new EnergyStorage(1000));
CapabilityManager.INSTANCE.register(IEnergyStorage.class);
}
}