接口 ILeashState
- 所有超级接口:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- 所有已知实现类:
LeashStateImpl
public interface ILeashState
extends net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Capability interface for managing leash states of entities and knots.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明voidaddLeashApplyEntityLocationOffset(net.minecraft.world.phys.Vec3 offset) Add leash apply entity location offset.voidaddLeashHolderLocationOffset(UUID holderUUID, net.minecraft.world.phys.Vec3 offset) Add leash holder location offset.voidaddLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos, net.minecraft.world.phys.Vec3 offset) Add leash holder location offset.voidaddLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder, net.minecraft.world.phys.Vec3 offset) Add leash holder location offset.voidCheck sync.voidcopy(ILeashState other, net.minecraft.world.entity.Entity newEntity) Copy.net.minecraft.world.phys.Vec3Gets default leash apply entity location offset.Gets holder leash states.Optional<net.minecraft.world.phys.Vec3>getHolderLocationOffset(UUID uuid) Gets holder location offset.Optional<net.minecraft.world.phys.Vec3>getHolderLocationOffset(net.minecraft.core.BlockPos pos) Gets holder location offset.Optional<net.minecraft.world.phys.Vec3>getHolderLocationOffset(net.minecraft.world.entity.Entity entity) Gets holder location offset.Map<net.minecraft.core.BlockPos,ILeashState.LeashState> Gets knot leash states.Optional<net.minecraft.world.phys.Vec3>Gets leash apply entity location offset.getLeashState(UUID uuid) Gets leash state.getLeashState(net.minecraft.core.BlockPos pos) Gets leash state.getLeashState(net.minecraft.world.entity.Entity entity) Gets leash state.booleanHas leash state boolean.voidImmediate sync.voidMark for sync.voidRemove all leash holder block pos location offset.voidRemove all leash holder location offset.voidRemove all leash holder uuid location offset.voidRemove leash apply entity location offset.voidremoveLeashHolderLocationOffset(UUID holderUUID) Remove leash holder location offset.voidremoveLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos) Remove leash holder location offset.voidremoveLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder) Remove leash holder location offset.voidReset all leash apply entity locations offset.voidReset all leash holder locations offset.voidresetLeashHolderLocationOffset(UUID holderUUID) Reset leash holder location offset.voidresetLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos) Reset leash holder location offset.voidresetLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder) Reset leash holder location offset.net.minecraft.world.entity.Entityself()Self entity.voidsetLeashApplyEntityLocationOffset(net.minecraft.world.phys.Vec3 offset) Sets leash apply entity location offset.voidsetLeashHolderLocationOffset(UUID holderUUID, @Nullable net.minecraft.world.phys.Vec3 offset) Sets leash holder location offset.voidsetLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos, @Nullable net.minecraft.world.phys.Vec3 offset) Sets leash holder location offset.voidsetLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder, @Nullable net.minecraft.world.phys.Vec3 offset) Sets leash holder location offset.从接口继承的方法 net.minecraftforge.common.util.INBTSerializable
deserializeNBT, serializeNBT
-
方法详细资料
-
self
net.minecraft.world.entity.Entity self()Self entity.- 返回:
- the entity
-
hasLeashState
boolean hasLeashState()Has leash state boolean.- 返回:
- the boolean
-
getHolderLeashStates
Map<UUID,ILeashState.LeashState> getHolderLeashStates()Gets holder leash states.- 返回:
- the holder leash states
-
getKnotLeashStates
Map<net.minecraft.core.BlockPos,ILeashState.LeashState> getKnotLeashStates()Gets knot leash states.- 返回:
- the knot leash states
-
getLeashState
Gets leash state.- 参数:
entity- the entity- 返回:
- the leash state
-
getLeashState
Gets leash state.- 参数:
uuid- the uuid- 返回:
- the leash state
-
getLeashState
Gets leash state.- 参数:
pos- the pos- 返回:
- the leash state
-
getHolderLocationOffset
Optional<net.minecraft.world.phys.Vec3> getHolderLocationOffset(net.minecraft.world.entity.Entity entity) Gets holder location offset.- 参数:
entity- the entity- 返回:
- the holder location offset
-
getHolderLocationOffset
Gets holder location offset.- 参数:
uuid- the uuid- 返回:
- the holder location offset
-
getHolderLocationOffset
Gets holder location offset.- 参数:
pos- the pos- 返回:
- the holder location offset
-
getLeashApplyEntityLocationOffset
Optional<net.minecraft.world.phys.Vec3> getLeashApplyEntityLocationOffset()Gets leash apply entity location offset.- 返回:
- the leash apply entity location offset
-
getDefaultLeashApplyEntityLocationOffset
net.minecraft.world.phys.Vec3 getDefaultLeashApplyEntityLocationOffset()Gets default leash apply entity location offset.- 返回:
- the default leash apply entity location offset
-
resetAllLeashApplyEntityLocationsOffset
void resetAllLeashApplyEntityLocationsOffset()Reset all leash apply entity locations offset. -
resetAllLeashHolderLocationsOffset
void resetAllLeashHolderLocationsOffset()Reset all leash holder locations offset. -
resetLeashHolderLocationOffset
void resetLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder) Reset leash holder location offset.- 参数:
holder- the holder
-
resetLeashHolderLocationOffset
Reset leash holder location offset.- 参数:
holderUUID- the holder uuid
-
resetLeashHolderLocationOffset
void resetLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos) Reset leash holder location offset.- 参数:
knotPos- the knot pos
-
setLeashHolderLocationOffset
void setLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder, @Nullable @Nullable net.minecraft.world.phys.Vec3 offset) Sets leash holder location offset.- 参数:
holder- the holderoffset- the offset
-
setLeashHolderLocationOffset
void setLeashHolderLocationOffset(UUID holderUUID, @Nullable @Nullable net.minecraft.world.phys.Vec3 offset) Sets leash holder location offset.- 参数:
holderUUID- the holder uuidoffset- the offset
-
setLeashHolderLocationOffset
void setLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable net.minecraft.world.phys.Vec3 offset) Sets leash holder location offset.- 参数:
knotPos- the knot posoffset- the offset
-
setLeashApplyEntityLocationOffset
void setLeashApplyEntityLocationOffset(net.minecraft.world.phys.Vec3 offset) Sets leash apply entity location offset.- 参数:
offset- the offset
-
addLeashHolderLocationOffset
void addLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder, net.minecraft.world.phys.Vec3 offset) Add leash holder location offset.- 参数:
holder- the holderoffset- the offset
-
addLeashHolderLocationOffset
Add leash holder location offset.- 参数:
holderUUID- the holder uuidoffset- the offset
-
addLeashHolderLocationOffset
void addLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos, net.minecraft.world.phys.Vec3 offset) Add leash holder location offset.- 参数:
knotPos- the knot posoffset- the offset
-
addLeashApplyEntityLocationOffset
void addLeashApplyEntityLocationOffset(net.minecraft.world.phys.Vec3 offset) Add leash apply entity location offset.- 参数:
offset- the offset
-
removeLeashHolderLocationOffset
void removeLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder) Remove leash holder location offset.- 参数:
holder- the holder
-
removeLeashHolderLocationOffset
Remove leash holder location offset.- 参数:
holderUUID- the holder uuid
-
removeLeashHolderLocationOffset
void removeLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos) Remove leash holder location offset.- 参数:
knotPos- the knot pos
-
removeAllLeashHolderLocationOffset
void removeAllLeashHolderLocationOffset()Remove all leash holder location offset. -
removeAllLeashHolderUUIDLocationOffset
void removeAllLeashHolderUUIDLocationOffset()Remove all leash holder uuid location offset. -
removeAllLeashHolderBlockPosLocationOffset
void removeAllLeashHolderBlockPosLocationOffset()Remove all leash holder block pos location offset. -
removeLeashApplyEntityLocationOffset
void removeLeashApplyEntityLocationOffset()Remove leash apply entity location offset. -
copy
Copy.- 参数:
other- the othernewEntity- the new entity
-
markForSync
void markForSync()Mark for sync. -
immediateSync
void immediateSync()Immediate sync. -
checkSync
void checkSync()Check sync.
-