类 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
The type Transfer 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 -
构造器概要
构造器构造器说明TransferLeash(net.minecraft.world.entity.Entity leashedEntity, UUID holderEntity, net.minecraft.world.entity.Entity newLeashHolder, int maxKeepLeashTicks) Instantiates a new Transfer leash.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. -
方法概要
修饰符和类型方法说明intGets max keep leash ticks.net.minecraft.world.entity.EntityGets new leash holder.Gets old leash holder.voidsetMaxKeepLeashTicks(int maxKeepLeashTicks) Sets max keep leash ticks.从类继承的方法 top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent
getLeashedEntity, isModified, markModified从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
构造器详细资料
-
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 entityholderEntity- the holder entitynewLeashHolder- the new leash holdermaxKeepLeashTicks- 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 entityholderKnot- the holder knotnewLeashHolder- the new leash holdermaxKeepLeashTicks- the max keep leash ticks
-
-
方法详细资料
-
getNewLeashHolder
public net.minecraft.world.entity.Entity getNewLeashHolder()Gets new leash holder.- 返回:
- the new leash holder
-
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
-