类 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

public static class SuperLeadRopeEvent.AddLeash extends SuperLeadRopeEvent
The type Add leash.
  • 构造器详细资料

    • 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 entity
      holderEntity - the holder entity
      maxKeepLeashTicks - 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 entity
      holderEntity - the holder entity
      maxLeashDistance - the max leash distance
      elasticDistanceScale - the elastic distance scale
      maxKeepLeashTicks - the max keep leash ticks
  • 方法详细资料

    • setElasticDistanceScale

      public void setElasticDistanceScale(@Nullable @Nullable Double elasticDistanceScale)
      Sets elastic distance scale.
      参数:
      elasticDistanceScale - the elastic distance scale
    • setMaxLeashDistance

      public void setMaxLeashDistance(@Nullable @Nullable Double maxLeashDistance)
      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

      @Nullable public @Nullable Double getMaxLeashDistance()
      Gets max leash distance.
      返回:
      the max leash distance
    • getElasticDistanceScale

      @Nullable public @Nullable Double getElasticDistanceScale()
      Gets elastic distance scale.
      返回:
      the elastic distance scale