Package dev.selena.luacore.nms
Interface INMSEntityBuilder
public interface INMSEntityBuilder
Interface for the version-specific EntityBuilder methods
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.LivingEntityUsed for getting the altered entitysetArmorBonus(float bonus) Used for setting the armor bonus attribute (0.0 to 30.0, default 0.0)setArmorToughnessBonus(float bonus) Used for setting the armor toughness bonus attribute (0.0 to 20.0, default 0.0)setAttackDamageBonus(float bonus) Used for setting the attack damage bonus (0.0 to 2048.0 default, 2.0)setAttackKnockBack(float bonus) Used for setting the attack knock back attribute (0.0 to 5.0, default 0.0)setBurningTime(float bonus) Used for setting the burning timer multiplier attribute (0.0 to 1024.0, default 1)setCameraDistance(float bonus) Used for setting the camera distance attribute (0.0 to 32.0, default 4)setEntityScale(float bonus) Used for setting the entity scale attribute (0.0625 to 16.0, default 1.0)setExplosionKnockBackResistance(float bonus) Used for setting the explosion knockback resistance attribute (0.0 to 1.0, default 0)setFallDamageMultiplier(float bonus) Used for setting the fall damage multiplier attribute (0.0 to 100.0, default 1)setFlyingSpeed(float bonus) Used for setting the flight speed attribute (0.0 to 1024.0, default 0.4)setFollowRange(float range) Used for setting the entity follow range attribute (0.0 to 2048, default 32.0)setGravity(float bonus) Used for setting the gravity attribute (-1.0 to 1.0, default 0.08)setJumpStrength(float bonus) Used for setting the jump strength attribute (0.0 to 2.0, default 0.7)setKnockBackResistance(float bonus) Used for setting the knock back resistance attribute (0.0 to 1.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)setMovementEfficiency(float bonus) Used for setting the movement efficiency attribute (0.0 to 1.0, default 0.0)setMovementSpeed(float bonus) Used for setting the entity movement speed attribute (0.0 to 1024.0, default depends on entity)setOxygenBonus(float bonus) Used for setting the oxygen bonus attribute (0.0 to 1024.0, default 0.0)setSafeFallDistance(float bonus) Used for setting the safe fall distance attribute (-1024.0 to 1024.0, default 3.0)setStepHeight(float height) Used for setting the entity step height attribute (0.0 to 10.0, default 0.6)setTemptRange(float bonus) Used for setting the temptation range attribute (0.0 to 2048.0, default 10.0)setWaterMoveEfficiency(float bonus) Used for setting the water move efficiency attribute (0.0 to 1.0, default 0.0)setWaypointReceiveRange(float bonus) Used for setting the waypoint receive range attribute (0.0 to 60,000,000.0, default 60,000,000.0 for players and 0.0 for other mobs)setWaypointTransmitRange(float bonus) Used for setting the waypoint transmit range attribute (0.0 to 60,000,000.0, default 60,000,000.0 for players and 0.0 for other mobs)spawnReinforcements(float spawn) Used for setting the spawn reinforcements attribute (0.0 to 1.0, default is random between 0.0 and 0.1)
-
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 entity builder
- See Also:
-
setArmorToughnessBonus
Used for setting the armor toughness bonus attribute (0.0 to 20.0, default 0.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setAttackDamageBonus
Used for setting the attack damage bonus (0.0 to 2048.0 default, 2.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setAttackKnockBack
Used for setting the attack knock back attribute (0.0 to 5.0, default 0.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setBurningTime
Used for setting the burning timer multiplier attribute (0.0 to 1024.0, default 1)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setCameraDistance
Used for setting the camera distance attribute (0.0 to 32.0, default 4)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setExplosionKnockBackResistance
Used for setting the explosion knockback resistance attribute (0.0 to 1.0, default 0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setFallDamageMultiplier
Used for setting the fall damage multiplier attribute (0.0 to 100.0, default 1)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setFlyingSpeed
Used for setting the flight speed attribute (0.0 to 1024.0, default 0.4)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setFollowRange
Used for setting the entity follow range attribute (0.0 to 2048, default 32.0)- Parameters:
range- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setGravity
Used for setting the gravity attribute (-1.0 to 1.0, default 0.08)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setKnockBackResistance
Used for setting the knock back resistance attribute (0.0 to 1.0, default 0.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
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 entity builder
- See Also:
-
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 entity builder
- See Also:
-
setMovementSpeed
Used for setting the entity movement speed attribute (0.0 to 1024.0, default depends on entity)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setJumpStrength
Used for setting the jump strength attribute (0.0 to 2.0, default 0.7)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setEntityScale
Used for setting the entity scale attribute (0.0625 to 16.0, default 1.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
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 entity builder
- See Also:
-
spawnReinforcements
Used for setting the spawn reinforcements attribute (0.0 to 1.0, default is random between 0.0 and 0.1)- Parameters:
spawn- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setMovementEfficiency
Used for setting the movement efficiency attribute (0.0 to 1.0, default 0.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
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 entity builder
- See Also:
-
setSafeFallDistance
Used for setting the safe fall distance attribute (-1024.0 to 1024.0, default 3.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setTemptRange
Used for setting the temptation range attribute (0.0 to 2048.0, default 10.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setWaterMoveEfficiency
Used for setting the water move efficiency attribute (0.0 to 1.0, default 0.0)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setWaypointReceiveRange
Used for setting the waypoint receive range attribute (0.0 to 60,000,000.0, default 60,000,000.0 for players and 0.0 for other mobs)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
setWaypointTransmitRange
Used for setting the waypoint transmit range attribute (0.0 to 60,000,000.0, default 60,000,000.0 for players and 0.0 for other mobs)- Parameters:
bonus- The value for the attribute- Returns:
- the current NMS entity builder
- See Also:
-
getEntity
org.bukkit.entity.LivingEntity getEntity()Used for getting the altered entity- Returns:
- The LivingEntity
-