类 SuperLeadRopeEvent.AddLeash
java.lang.Object
net.minecraftforge.eventbus.api.Event
top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent
top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent.AddLeash
- 所有已实现的接口:
net.minecraftforge.fml.event.IModBusEvent
- 封闭类:
- SuperLeadRopeEvent
The type Add leash.
-
嵌套类概要
从类继承的嵌套类/接口 top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent
SuperLeadRopeEvent.AddLeash, SuperLeadRopeEvent.hasFocus, SuperLeadRopeEvent.keepNotBreakTick, SuperLeadRopeEvent.ModifyValue<T>, SuperLeadRopeEvent.RemoveLeash, SuperLeadRopeEvent.teleportWithHolder, SuperLeadRopeEvent.TransferLeash从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
构造器概要
构造器构造器说明AddLeash(net.minecraft.world.entity.Entity leashedEntity, net.minecraft.world.entity.Entity holderEntity, int maxKeepLeashTicks) Instantiates a new Add leash.AddLeash(net.minecraft.world.entity.Entity leashedEntity, net.minecraft.world.entity.Entity holderEntity, @Nullable Double maxLeashDistance, @Nullable Double elasticDistanceScale, int maxKeepLeashTicks) Instantiates a new Add leash. -
方法概要
修饰符和类型方法说明@Nullable DoubleGets elastic distance scale.net.minecraft.world.entity.EntityGets holder entity.intGets max keep leash ticks.@Nullable DoubleGets max leash distance.voidsetElasticDistanceScale(@Nullable Double elasticDistanceScale) Sets elastic distance scale.voidsetMaxKeepLeashTicks(int maxKeepLeashTicks) Sets max keep leash ticks.voidsetMaxLeashDistance(@Nullable Double maxLeashDistance) Sets max leash distance.从类继承的方法 top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent
getLeashedEntity, isModified, markModified从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
构造器详细资料
-
AddLeash
public AddLeash(net.minecraft.world.entity.Entity leashedEntity, net.minecraft.world.entity.Entity holderEntity, int maxKeepLeashTicks) Instantiates a new Add leash.- 参数:
leashedEntity- the leashed entityholderEntity- the holder entitymaxKeepLeashTicks- the max keep leash ticks
-
AddLeash
public AddLeash(net.minecraft.world.entity.Entity leashedEntity, net.minecraft.world.entity.Entity holderEntity, @Nullable @Nullable Double maxLeashDistance, @Nullable @Nullable Double elasticDistanceScale, int maxKeepLeashTicks) Instantiates a new Add leash.- 参数:
leashedEntity- the leashed entityholderEntity- the holder entitymaxLeashDistance- the max leash distanceelasticDistanceScale- the elastic distance scalemaxKeepLeashTicks- the max keep leash ticks
-
-
方法详细资料
-
setElasticDistanceScale
Sets elastic distance scale.- 参数:
elasticDistanceScale- the elastic distance scale
-
setMaxLeashDistance
Sets max leash distance.- 参数:
maxLeashDistance- the max leash distance
-
setMaxKeepLeashTicks
public void setMaxKeepLeashTicks(int maxKeepLeashTicks) Sets max keep leash ticks.- 参数:
maxKeepLeashTicks- the max keep leash ticks
-
getMaxKeepLeashTicks
public int getMaxKeepLeashTicks()Gets max keep leash ticks.- 返回:
- the max keep leash ticks
-
getHolderEntity
public net.minecraft.world.entity.Entity getHolderEntity()Gets holder entity.- 返回:
- the holder entity
-
getMaxLeashDistance
Gets max leash distance.- 返回:
- the max leash distance
-
getElasticDistanceScale
Gets elastic distance scale.- 返回:
- the elastic distance scale
-