mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Capability rework to get rid of @CapabilityInject and use CapabilityToken as the identifier, deprecated old system for removal in 1.18. (#8116)
This commit is contained in:
1 parent
166feefc02
commit
96303f6570
12 files changed
+285
-67
No files matched your search
@@ -23,8 +23,7 @@ import net.minecraftforge.common.capabilities.*;
|
||||
|
||||
public class CapabilityEnergy
|
||||
{
|
||||
@CapabilityInject(IEnergyStorage.class)
|
||||
public static Capability<IEnergyStorage> ENERGY = null;
|
||||
public static final Capability<IEnergyStorage> ENERGY = CapabilityManager.get(new CapabilityToken<>(){});;
|
||||
|
||||
public static void register(RegisterCapabilitiesEvent event)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user