Package dev.selena.luacore.nms
Interface INMSPlayerAttributeModifier
public interface INMSPlayerAttributeModifier
-
Method Summary
Modifier and TypeMethodDescriptiondefault INMSPlayerAttributeModifierResets the armor bonus attribute to 0.0default INMSPlayerAttributeModifierResets the armor toughness attribute to 0.0default INMSPlayerAttributeModifierResets the attack damage attribute to 1.0default INMSPlayerAttributeModifierResets the attack knock back attribute to 0.0default INMSPlayerAttributeModifierResets the attack speed attribute to 4.0default INMSPlayerAttributeModifierResets the block break speed multiplier attribute to 1.0default INMSPlayerAttributeModifierResets the block interaction range attribute to 4.5default INMSPlayerAttributeModifierResets the burning time multiplier attribute to 1.0default INMSPlayerAttributeModifierResets the camera distance attribute to 4.0default INMSPlayerAttributeModifierResets the entity interaction range attribute to 3.0default INMSPlayerAttributeModifierResets the entity scale attribute to 1.0default INMSPlayerAttributeModifierResets the explosion knock back resistance attribute to 0.0default INMSPlayerAttributeModifierResets the fall damage multiplier attribute to 1.0default INMSPlayerAttributeModifierResets the gravity attribute to 0.08default INMSPlayerAttributeModifierResets the jump strength attribute to 0.42default INMSPlayerAttributeModifierResets the knock back resistance attribute to 0.0default INMSPlayerAttributeModifierResets the luck attribute to 0.0default INMSPlayerAttributeModifierResets the max absorption attribute todefault INMSPlayerAttributeModifierResets the max health attribute to 20.0default INMSPlayerAttributeModifierResets the mining efficiency attribute to 0.0default INMSPlayerAttributeModifierResets the movement efficiency attribute to 0.0default INMSPlayerAttributeModifierResets the movement speed attribute to 0.1default INMSPlayerAttributeModifierResets the oxygen bonus attribute to 0.0default INMSPlayerAttributeModifierResets the safe fall distance attribute to 3.0default INMSPlayerAttributeModifierResets the sneaking speed attribute to 0.3default INMSPlayerAttributeModifierResets the step height attribute to 0.6default INMSPlayerAttributeModifierResets the submerged mining speed attribute to 0.2default INMSPlayerAttributeModifierResets the sweeping damage ratio attribute to 0.0default INMSPlayerAttributeModifierResets the water movement efficiency attribute to 0.0default INMSPlayerAttributeModifierResets the waypoint receive range attribute to 60,000,000.0default INMSPlayerAttributeModifierResets the waypoint transmit range attribute to 60,000,000.0setArmorBonus(float bonus) Used for setting the armor bonus attribute (0.0 to 30.0, default 0.0)setArmorToughness(float toughness) Used for setting the armor toughness attribute (0.0 to 20.0, default 0.0)setAttackDamage(float damage) Used for setting the attack damage attribute (0.0 to 2048.0 default, 1.0)setAttackKnockBack(float knockBack) Used for setting the attack knock back attribute (0.0 to 5.0, default 0.0)setAttackSpeed(float speed) Used for setting the attack speed attribute (0.0 to 1024.0, default 4)setBlockBreakSpeed(float speed) Used for setting the block breaking speed attribute (0.0 to 1024.0, default 1)setBlockInteractionRange(float range) Used to set the entity interaction with block distance attribute (0.0 to 64, default 4.5)setBurningTime(float multiplier) Used for setting the burning timer multiplier attribute (0.0 to 1024.0, default 1)setCameraDistance(float distance) Used for setting the camera distance attribute (0.0 to 32.0, default 4)setEntityInteractionRange(float range) Used to set the entity interaction with entity distance attribute (0.0 to 64.0, default 3.0)setEntityScale(float scale) Used for setting the entity scale attribute (0.0625 to 16.0, default 1.0)setExplosionKnockBackResistance(float resistance) Used for setting the explosion knock back resistance attribute (0.0 to 1.0, default 0)setFallDamageMultiplier(float multiplier) Used for setting the fall damage multiplier attribute (0.0 to 100.0, default 1.0)setGravity(float gravity) Used for setting the gravity attribute (-1.0 to 1.0, default 0.08)setJumpStrength(float strength) Used for setting the jump strength attribute (0.0 to 32.0, default 0.42)setKnockBackResistance(float resistance) Used for setting the knock back resistance attribute (0.0 to 1.0, default 0.0)setLuck(float luck) Used for setting the luck attribute (-1024.0 to 1024.0, default 0.0)setMaxAbsorption(float max) Used for setting the maximum absorption attribute (0.0 to 2048.0, default 0.0)setMaxHealth(float max) Used for setting the maximum health attribute (0.0 to 1024.0, default 20.0)setMiningEfficiency(float efficiency) Used for setting the mining efficiency attribute (0.0 to 1024.0, default 0.0)setMovementEfficiency(float efficiency) Used for setting the movement efficiency attribute (0.0 to 1.0, default 0.0)setMovementSpeed(float speed) Used for setting the entity movement speed attribute (0.0 to 1024.0, default 0.1)setOxygenBonus(float bonus) Used for setting the oxygen bonus attribute (0.0 to 1024.0, default 0.0)setSafeFallDistance(float distance) Used for setting the safe fall distance attribute (-1024.0 to 1024.0, default 3.0)setSneakingSpeed(float speed) Used for setting the sneaking speed attribute (0.0 to 1.0, default 0.3)setStepHeight(float height) Used for setting the entity step height attribute (0.0 to 10.0, default 0.6)setSubmergedMiningSpeed(float speed) Used for setting the submerged mining speed attribute (0.0 to 20.0, default 0.2)setSweepingDamageRatio(float ratio) Used for setting the sweeping damage ratio attribute (0.0 to 1.0, default 0.0)setWaterMoveEfficiency(float efficiency) Used for setting the water move efficiency attribute (0.0 to 1.0, default 0.0)setWaypointReceiveRange(float range) Used for setting the waypoint receive range attribute (0.0 to 60,000,000.0, default 60,000,000.0)setWaypointTransmitRange(float range) Used for setting the waypoint transmit range attribute (0.0 to 60,000,000.0, default 60,000,000.0)
-
Method Details
-
setArmorBonus
Used for setting the armor bonus attribute (0.0 to 30.0, default 0.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetArmorBonus
Resets the armor bonus attribute to 0.0- Returns:
- the current NMS player modifier
-
setArmorToughness
Used for setting the armor toughness attribute (0.0 to 20.0, default 0.0)- Parameters:
toughness- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetArmorToughness
Resets the armor toughness attribute to 0.0- Returns:
- the current NMS player modifier
-
setAttackDamage
Used for setting the attack damage attribute (0.0 to 2048.0 default, 1.0)- Parameters:
damage- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetAttackDamage
Resets the attack damage attribute to 1.0- Returns:
- the current NMS player modifier
-
setAttackKnockBack
Used for setting the attack knock back attribute (0.0 to 5.0, default 0.0)- Parameters:
knockBack- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetAttackKnockBack
Resets the attack knock back attribute to 0.0- Returns:
- the current NMS player modifier
-
setAttackSpeed
Used for setting the attack speed attribute (0.0 to 1024.0, default 4)- Parameters:
speed- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetAttackSpeed
Resets the attack speed attribute to 4.0- Returns:
- the current NMS player modifier
-
setBlockBreakSpeed
Used for setting the block breaking speed attribute (0.0 to 1024.0, default 1)- Parameters:
speed- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetBlockBreakSpeed
Resets the block break speed multiplier attribute to 1.0- Returns:
- the current NMS player modifier
-
setBurningTime
Used for setting the burning timer multiplier attribute (0.0 to 1024.0, default 1)- Parameters:
multiplier- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetBurningTime
Resets the burning time multiplier attribute to 1.0- Returns:
- the current NMS player modifier
-
setCameraDistance
Used for setting the camera distance attribute (0.0 to 32.0, default 4)- Parameters:
distance- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetCameraDistance
Resets the camera distance attribute to 4.0- Returns:
- the current NMS player modifier
-
setExplosionKnockBackResistance
Used for setting the explosion knock back resistance attribute (0.0 to 1.0, default 0)- Parameters:
resistance- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetExplosionKnockBackResistance
Resets the explosion knock back resistance attribute to 0.0- Returns:
- the current NMS player modifier
-
setFallDamageMultiplier
Used for setting the fall damage multiplier attribute (0.0 to 100.0, default 1.0)- Parameters:
multiplier- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetFallDamageMultiplier
Resets the fall damage multiplier attribute to 1.0- Returns:
- the current NMS player modifier
-
setGravity
Used for setting the gravity attribute (-1.0 to 1.0, default 0.08)- Parameters:
gravity- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetGravity
Resets the gravity attribute to 0.08- Returns:
- the current NMS player modifier
-
setKnockBackResistance
Used for setting the knock back resistance attribute (0.0 to 1.0, default 0.0)- Parameters:
resistance- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetKnockBackResistance
Resets the knock back resistance attribute to 0.0- Returns:
- the current NMS player modifier
-
setLuck
Used for setting the luck attribute (-1024.0 to 1024.0, default 0.0)- Parameters:
luck- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetLuck
Resets the luck attribute to 0.0- Returns:
- the current NMS player modifier
-
setMaxAbsorption
Used for setting the maximum absorption attribute (0.0 to 2048.0, default 0.0)- Parameters:
max- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetMaxAbsorption
Resets the max absorption attribute to- Returns:
- the current NMS player modifier
-
setMaxHealth
Used for setting the maximum health attribute (0.0 to 1024.0, default 20.0)- Parameters:
max- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetMaxHealth
Resets the max health attribute to 20.0- Returns:
- the current NMS player modifier
-
setMovementSpeed
Used for setting the entity movement speed attribute (0.0 to 1024.0, default 0.1)- Parameters:
speed- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetMovementSpeed
Resets the movement speed attribute to 0.1- Returns:
- the current NMS player modifier
-
setJumpStrength
Used for setting the jump strength attribute (0.0 to 32.0, default 0.42)- Parameters:
strength- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetJumpStrength
Resets the jump strength attribute to 0.42- Returns:
- the current NMS player modifier
-
setEntityScale
Used for setting the entity scale attribute (0.0625 to 16.0, default 1.0)- Parameters:
scale- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetEntityScale
Resets the entity scale attribute to 1.0- Returns:
- the current NMS player modifier
-
setBlockInteractionRange
Used to set the entity interaction with block distance attribute (0.0 to 64, default 4.5)- Parameters:
range- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetBlockInteractionRange
Resets the block interaction range attribute to 4.5- Returns:
- the current NMS player modifier
-
setEntityInteractionRange
Used to set the entity interaction with entity distance attribute (0.0 to 64.0, default 3.0)- Parameters:
range- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetEntityInteractionRange
Resets the entity interaction range attribute to 3.0- Returns:
- the current NMS player modifier
-
setStepHeight
Used for setting the entity step height attribute (0.0 to 10.0, default 0.6)- Parameters:
height- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetStepHeight
Resets the step height attribute to 0.6- Returns:
- the current NMS player modifier
-
setMiningEfficiency
Used for setting the mining efficiency attribute (0.0 to 1024.0, default 0.0)- Parameters:
efficiency- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetMiningEfficiency
Resets the mining efficiency attribute to 0.0- Returns:
- the current NMS player modifier
-
setMovementEfficiency
Used for setting the movement efficiency attribute (0.0 to 1.0, default 0.0)- Parameters:
efficiency- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetMovementEfficiency
Resets the movement efficiency attribute to 0.0- Returns:
- the current NMS player modifier
-
setOxygenBonus
Used for setting the oxygen bonus attribute (0.0 to 1024.0, default 0.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetOxygenBonus
Resets the oxygen bonus attribute to 0.0- Returns:
- the current NMS player modifier
-
setSafeFallDistance
Used for setting the safe fall distance attribute (-1024.0 to 1024.0, default 3.0)- Parameters:
distance- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetSafeFallDistance
Resets the safe fall distance attribute to 3.0- Returns:
- the current NMS player modifier
-
setSneakingSpeed
Used for setting the sneaking speed attribute (0.0 to 1.0, default 0.3)- Parameters:
speed- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetSneakingSpeed
Resets the sneaking speed attribute to 0.3- Returns:
- the current NMS player modifier
-
setSubmergedMiningSpeed
Used for setting the submerged mining speed attribute (0.0 to 20.0, default 0.2)- Parameters:
speed- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetSubmergedMiningSpeed
Resets the submerged mining speed attribute to 0.2- Returns:
- the current NMS player modifier
-
setSweepingDamageRatio
Used for setting the sweeping damage ratio attribute (0.0 to 1.0, default 0.0)- Parameters:
ratio- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetSweepingDamageRatio
Resets the sweeping damage ratio attribute to 0.0- Returns:
- the current NMS player modifier
-
setWaterMoveEfficiency
Used for setting the water move efficiency attribute (0.0 to 1.0, default 0.0)- Parameters:
efficiency- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetWaterMoveEfficiency
Resets the water movement efficiency attribute to 0.0- Returns:
- the current NMS player modifier
-
setWaypointReceiveRange
Used for setting the waypoint receive range attribute (0.0 to 60,000,000.0, default 60,000,000.0)- Parameters:
range- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetWaypointReceiveRange
Resets the waypoint receive range attribute to 60,000,000.0- Returns:
- the current NMS player modifier
-
setWaypointTransmitRange
Used for setting the waypoint transmit range attribute (0.0 to 60,000,000.0, default 60,000,000.0)- Parameters:
range- The value for the attribute- Returns:
- the current NMS player modifier
- See Also:
-
resetWaypointTransmitRange
Resets the waypoint transmit range attribute to 60,000,000.0- Returns:
- the current NMS player modifier
-