类 SuperLeadRopeEvent.TransferLeash

java.lang.Object
net.minecraftforge.eventbus.api.Event
top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent
top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent.TransferLeash
所有已实现的接口:
net.minecraftforge.fml.event.IModBusEvent
封闭类:
SuperLeadRopeEvent

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

    • TransferLeash

      public TransferLeash(net.minecraft.world.entity.Entity leashedEntity, UUID holderEntity, net.minecraft.world.entity.Entity newLeashHolder, int maxKeepLeashTicks)
      Instantiates a new Transfer leash.
      参数:
      leashedEntity - the leashed entity
      holderEntity - the holder entity
      newLeashHolder - the new leash holder
      maxKeepLeashTicks - the max keep leash ticks
    • TransferLeash

      public TransferLeash(net.minecraft.world.entity.Entity leashedEntity, net.minecraft.core.BlockPos holderKnot, net.minecraft.world.entity.Entity newLeashHolder, int maxKeepLeashTicks)
      Instantiates a new Transfer leash.
      参数:
      leashedEntity - the leashed entity
      holderKnot - the holder knot
      newLeashHolder - the new leash holder
      maxKeepLeashTicks - the max keep leash ticks
  • 方法详细资料

    • getNewLeashHolder

      public net.minecraft.world.entity.Entity getNewLeashHolder()
      Gets new leash holder.
      返回:
      the new leash holder
    • getOldLeashHolder

      public LeashHolder getOldLeashHolder()
      Gets old leash holder.
      返回:
      the old leash holder
    • 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