类 SuperLeadRopeEvent.ModifyValue<T>
java.lang.Object
net.minecraftforge.eventbus.api.Event
top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent
top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent.ModifyValue<T>
- 类型参数:
T- the type parameter
- 所有已实现的接口:
net.minecraftforge.fml.event.IModBusEvent
- 封闭类:
- SuperLeadRopeEvent
The type Modify value.
-
嵌套类概要
嵌套类修饰符和类型类说明static enumThe enum Scope.static enumThe enum Type.从类继承的嵌套类/接口 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 -
构造器概要
构造器构造器说明ModifyValue(net.minecraft.world.entity.Entity leashedEntity, UUID holderUUID, T oldValue, T newValue, SuperLeadRopeEvent.ModifyValue.Type type) Instantiates a new Modify value.ModifyValue(net.minecraft.world.entity.Entity leashedEntity, net.minecraft.core.BlockPos knotBlockpos, T oldValue, T newValue, SuperLeadRopeEvent.ModifyValue.Type type) Instantiates a new Modify value.ModifyValue(net.minecraft.world.entity.Entity leashedEntity, T oldValue, T newValue, SuperLeadRopeEvent.ModifyValue.Type type) Instantiates a new Modify value. -
方法概要
修饰符和类型方法说明Gets new value.<R> RgetNewValueAs(Class<R> clazz) Gets new value as.Gets old value.<R> RgetOldValueAs(Class<R> clazz) Gets old value as.voidsetNewValue(T newValue) Sets new value.从类继承的方法 top.r3944realms.superleadrope.api.event.SuperLeadRopeEvent
getLeashedEntity, isModified, markModified从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
构造器详细资料
-
ModifyValue
public ModifyValue(net.minecraft.world.entity.Entity leashedEntity, UUID holderUUID, @Nullable T oldValue, @Nullable T newValue, SuperLeadRopeEvent.ModifyValue.Type type) Instantiates a new Modify value.- 参数:
leashedEntity- the leashed entityholderUUID- the holder uuidoldValue- the old valuenewValue- the new valuetype- the type
-
ModifyValue
public ModifyValue(net.minecraft.world.entity.Entity leashedEntity, net.minecraft.core.BlockPos knotBlockpos, @Nullable T oldValue, @Nullable T newValue, SuperLeadRopeEvent.ModifyValue.Type type) Instantiates a new Modify value.- 参数:
leashedEntity- the leashed entityknotBlockpos- the knot blockposoldValue- the old valuenewValue- the new valuetype- the type
-
ModifyValue
public ModifyValue(net.minecraft.world.entity.Entity leashedEntity, @Nullable T oldValue, @Nullable T newValue, SuperLeadRopeEvent.ModifyValue.Type type) Instantiates a new Modify value.- 参数:
leashedEntity- the leashed entityoldValue- the old valuenewValue- the new valuetype- the type
-
-
方法详细资料
-
getOldValueAs
Gets old value as.- 类型参数:
R- the type parameter- 参数:
clazz- the clazz- 返回:
- the old value as
-
getNewValueAs
Gets new value as.- 类型参数:
R- the type parameter- 参数:
clazz- the clazz- 返回:
- the new value as
-
getOldValue
Gets old value.- 返回:
- the old value
-
getNewValue
Gets new value.- 返回:
- the new value
-
setNewValue
Sets new value.- 参数:
newValue- the new value
-