use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method getPrevDecayLevel.
@ZenMethod
public static int getPrevDecayLevel(IPlayer player) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
return cap.getDecayStats().getPrevDecayLevel();
}
use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method setDecayLevel.
@ZenMethod
public static void setDecayLevel(IPlayer player, int decay) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
cap.getDecayStats().setDecayLevel(decay);
}
use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method getSaturationLevel.
@ZenMethod
public static float getSaturationLevel(IPlayer player) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
return cap.getDecayStats().getSaturationLevel();
}
use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method isCapBeNull.
@ZenMethod
public static boolean isCapBeNull(IPlayer player) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
return cap == null;
}
Aggregations