use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method setDecaySaturationLevel.
@ZenMethod
public static void setDecaySaturationLevel(IPlayer player, float saturation) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
cap.getDecayStats().setDecaySaturationLevel(saturation);
}
use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method addStats.
@ZenMethod
public static void addStats(IPlayer player, int decay, float saturationModifier) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
cap.getDecayStats().addStats(decay, saturationModifier);
}
use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method getAccelerationLevel.
@ZenMethod
public static float getAccelerationLevel(IPlayer player) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
return cap.getDecayStats().getAccelerationLevel();
}
use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method getDecayLevel.
@ZenMethod
public static int getDecayLevel(IPlayer player) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
return cap.getDecayStats().getDecayLevel();
}
use of thebetweenlands.api.capability.IDecayCapability in project RandomTweaker by Project-RT.
the class IPlayerExpansionTBL method addDecayAcceleration.
@ZenMethod
public static void addDecayAcceleration(IPlayer player, float acceleration) {
EntityPlayer mcPlayer = CraftTweakerMC.getPlayer(player);
IDecayCapability cap = mcPlayer.getCapability(CapabilityRegistry.CAPABILITY_DECAY, null);
assert cap != null;
cap.getDecayStats().addDecayAcceleration(acceleration);
}
Aggregations