public class PlayerModify
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PlayerModify.Type
Several modification type.
|
| 构造器和说明 |
|---|
PlayerModify() |
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
getAttack(net.minecraft.entity.player.EntityPlayer player) |
static double |
getMaxHealth(net.minecraft.entity.player.EntityPlayer player) |
static void |
modifyAttack(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type) |
static void |
modifyJumpSpeed(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type) |
static void |
modifyMaxHealth(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type) |
static void |
modifyMoveSpeed(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type) |
public static void modifyMaxHealth(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type)
player - The player will be modified.factor - The value of factor.type - The type of modification.public static double getMaxHealth(net.minecraft.entity.player.EntityPlayer player)
public static void modifyAttack(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type)
player - The player will be modified.factor - The value of factor.type - The type of modification.public static double getAttack(net.minecraft.entity.player.EntityPlayer player)
public static void modifyMoveSpeed(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type)
player - The player will be modified.factor - The value of factor.type - The type of modification.public static void modifyJumpSpeed(net.minecraft.entity.player.EntityPlayer player,
double factor,
PlayerModify.Type type)
player - The player will be modified.factor - The value of factor.type - The type of modification.