Class HorseHelper
java.lang.Object
tschipp.callablehorses.common.helper.HorseHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddOfflineSavedHorse(net.minecraft.server.level.ServerLevel world, String storageId, net.minecraft.nbt.CompoundTag nbt) static booleancanSerialize(net.minecraft.world.entity.Entity entity) static voidclearDisbanded(net.minecraft.server.level.ServerLevel world, String storageId) static voidclearKilled(net.minecraft.server.level.ServerLevel world, String storageId) static voidclearOfflineSavedHorse(net.minecraft.server.level.ServerLevel world, String storageId) static voiddisbandHorse(net.minecraft.server.level.ServerLevel world, String storageId) static @Nullable StoredHorseDatagetHorseData(net.minecraft.world.entity.Entity horse) static intgetHorseNum(net.minecraft.server.level.ServerLevel world, String storageid) static @Nullable StoredHorseDatagetOrCreateHorseData(net.minecraft.world.entity.Entity horse) static HorseOwnerDatagetOwnerData(net.minecraft.world.entity.player.Player player) static @Nullable net.minecraft.world.entity.player.PlayergetPlayerFromUUID(String uuid, net.minecraft.world.level.Level world) static StoredHorsesWorldDatagetWorldData(net.minecraft.server.level.ServerLevel world) static booleanisCallable(net.minecraft.world.entity.Entity entity) static booleanisCallableType(net.minecraft.world.entity.EntityType<?> type) static booleanisOwnedHorse(net.minecraft.world.entity.Entity entity) static voidmarkKilled(net.minecraft.server.level.ServerLevel world, String storageId) static voidsendHorseUpdateInRange(net.minecraft.world.entity.Entity horse) static voidsendHorseUpdateToClient(net.minecraft.world.entity.Entity horse, net.minecraft.world.entity.player.Player player) static net.minecraft.nbt.CompoundTagserializeEntity(net.minecraft.world.entity.Entity entity) static voidsetHorseLastSeen(net.minecraft.world.entity.player.Player player) static voidsetHorseNum(net.minecraft.server.level.ServerLevel world, String storageid, int num) static net.minecraft.nbt.CompoundTagupgradeStoredEntity(net.minecraft.nbt.CompoundTag tag)
-
Constructor Details
-
HorseHelper
public HorseHelper()
-
-
Method Details
-
isCallable
public static boolean isCallable(net.minecraft.world.entity.Entity entity) -
isCallableType
public static boolean isCallableType(net.minecraft.world.entity.EntityType<?> type) -
getOwnerData
-
getHorseData
@Nullable public static @Nullable StoredHorseData getHorseData(net.minecraft.world.entity.Entity horse) -
getOrCreateHorseData
@Nullable public static @Nullable StoredHorseData getOrCreateHorseData(net.minecraft.world.entity.Entity horse) -
isOwnedHorse
public static boolean isOwnedHorse(net.minecraft.world.entity.Entity entity) -
canSerialize
public static boolean canSerialize(net.minecraft.world.entity.Entity entity) -
serializeEntity
public static net.minecraft.nbt.CompoundTag serializeEntity(net.minecraft.world.entity.Entity entity) -
upgradeStoredEntity
public static net.minecraft.nbt.CompoundTag upgradeStoredEntity(net.minecraft.nbt.CompoundTag tag) -
sendHorseUpdateInRange
public static void sendHorseUpdateInRange(net.minecraft.world.entity.Entity horse) -
sendHorseUpdateToClient
public static void sendHorseUpdateToClient(net.minecraft.world.entity.Entity horse, net.minecraft.world.entity.player.Player player) -
getPlayerFromUUID
@Nullable public static @Nullable net.minecraft.world.entity.player.Player getPlayerFromUUID(String uuid, net.minecraft.world.level.Level world) -
setHorseNum
public static void setHorseNum(net.minecraft.server.level.ServerLevel world, String storageid, int num) -
markKilled
-
clearKilled
-
disbandHorse
-
clearDisbanded
-
addOfflineSavedHorse
public static void addOfflineSavedHorse(net.minecraft.server.level.ServerLevel world, String storageId, net.minecraft.nbt.CompoundTag nbt) -
clearOfflineSavedHorse
public static void clearOfflineSavedHorse(net.minecraft.server.level.ServerLevel world, String storageId) -
getHorseNum
-
setHorseLastSeen
public static void setHorseLastSeen(net.minecraft.world.entity.player.Player player) -
getWorldData
-