Class HorseHelper

java.lang.Object
tschipp.callablehorses.common.helper.HorseHelper

public class HorseHelper extends Object
  • 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

      public static HorseOwnerData getOwnerData(net.minecraft.world.entity.player.Player player)
    • 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

      public static void markKilled(net.minecraft.server.level.ServerLevel world, String storageId)
    • clearKilled

      public static void clearKilled(net.minecraft.server.level.ServerLevel world, String storageId)
    • disbandHorse

      public static void disbandHorse(net.minecraft.server.level.ServerLevel world, String storageId)
    • clearDisbanded

      public static void clearDisbanded(net.minecraft.server.level.ServerLevel world, String storageId)
    • 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

      public static int getHorseNum(net.minecraft.server.level.ServerLevel world, String storageid)
    • setHorseLastSeen

      public static void setHorseLastSeen(net.minecraft.world.entity.player.Player player)
    • getWorldData

      public static StoredHorsesWorldData getWorldData(net.minecraft.server.level.ServerLevel world)