Class FabricXplatImpl

java.lang.Object
at.petrak.hexcasting.fabric.xplat.FabricXplatImpl
All Implemented Interfaces:
at.petrak.hexcasting.xplat.IXplatAbstractions

public class FabricXplatImpl extends Object implements at.petrak.hexcasting.xplat.IXplatAbstractions
  • Field Summary

    Fields inherited from interface at.petrak.hexcasting.xplat.IXplatAbstractions

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.Item.Properties
    addEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot)
     
    void
    brainsweep(net.minecraft.world.entity.Mob mob)
     
    void
    clearCastingData(net.minecraft.server.level.ServerPlayer player)
     
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    net.minecraft.world.level.block.entity.BlockEntityType<T>
    createBlockEntityType(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> func, net.minecraft.world.level.block.Block... blocks)
     
    @Nullable at.petrak.hexcasting.api.addldata.DataHolder
    findDataHolder(net.minecraft.world.item.ItemStack stack)
     
    @Nullable at.petrak.hexcasting.api.addldata.HexHolder
    findHexHolder(net.minecraft.world.item.ItemStack stack)
     
    @Nullable at.petrak.hexcasting.api.addldata.ManaHolder
    findManaHolder(net.minecraft.world.item.ItemStack stack)
     
    at.petrak.hexcasting.api.misc.FrozenColorizer
    getColorizer(net.minecraft.world.entity.player.Player player)
     
    at.petrak.hexcasting.api.player.FlightAbility
    getFlight(net.minecraft.server.level.ServerPlayer player)
     
    at.petrak.hexcasting.api.spell.casting.CastingHarness
    getHarness(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand)
     
    net.minecraft.resources.ResourceLocation
    getID(net.minecraft.world.entity.npc.VillagerProfession profession)
     
    net.minecraft.resources.ResourceLocation
    getID(net.minecraft.world.item.Item item)
     
    net.minecraft.resources.ResourceLocation
    getID(net.minecraft.world.level.block.Block block)
     
    List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern>
    getPatterns(net.minecraft.server.level.ServerPlayer player)
     
    int
    getRawColor(at.petrak.hexcasting.api.misc.FrozenColorizer colorizer, float time, net.minecraft.world.phys.Vec3 position)
     
    net.minecraft.world.entity.ai.attributes.Attribute
     
    at.petrak.hexcasting.api.player.Sentinel
    getSentinel(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.world.item.CreativeModeTab
     
    net.minecraft.world.item.crafting.Ingredient
    getUnsealedIngredient(net.minecraft.world.item.ItemStack stack)
     
    void
     
    boolean
    isBrainswept(net.minecraft.world.entity.Mob mob)
     
    boolean
    isColorizer(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs)
     
    boolean
     
    boolean
     
    net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    at.petrak.hexcasting.xplat.Platform
     
    void
    sendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.hexcasting.common.network.IMessage packet)
     
    void
    sendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.network.IMessage packet)
     
    void
    setColorizer(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.misc.FrozenColorizer colorizer)
     
    void
    setFlight(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.player.FlightAbility flight)
     
    void
    setHarness(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.spell.casting.CastingHarness harness)
     
    void
    setPatterns(net.minecraft.server.level.ServerPlayer target, List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern> patterns)
     
    void
    setSentinel(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.player.Sentinel sentinel)
     
    at.petrak.hexcasting.xplat.IXplatTags
     
    net.minecraft.network.protocol.Packet<?>
    toVanillaClientboundPacket(at.petrak.hexcasting.common.network.IMessage message)
     
    boolean
    tryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.material.Fluid fluid)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FabricXplatImpl

      public FabricXplatImpl()
  • Method Details

    • platform

      public at.petrak.hexcasting.xplat.Platform platform()
      Specified by:
      platform in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isPhysicalClient

      public boolean isPhysicalClient()
      Specified by:
      isPhysicalClient in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isModPresent

      public boolean isModPresent(String id)
      Specified by:
      isModPresent in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • initPlatformSpecific

      public void initPlatformSpecific()
      Specified by:
      initPlatformSpecific in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getReachDistance

      public net.minecraft.world.entity.ai.attributes.Attribute getReachDistance()
      Specified by:
      getReachDistance in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • sendPacketToPlayer

      public void sendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.network.IMessage packet)
      Specified by:
      sendPacketToPlayer in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • sendPacketNear

      public void sendPacketNear(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.hexcasting.common.network.IMessage packet)
      Specified by:
      sendPacketNear in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • toVanillaClientboundPacket

      public net.minecraft.network.protocol.Packet<?> toVanillaClientboundPacket(at.petrak.hexcasting.common.network.IMessage message)
      Specified by:
      toVanillaClientboundPacket in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • brainsweep

      public void brainsweep(net.minecraft.world.entity.Mob mob)
      Specified by:
      brainsweep in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setColorizer

      public void setColorizer(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.misc.FrozenColorizer colorizer)
      Specified by:
      setColorizer in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setSentinel

      public void setSentinel(net.minecraft.world.entity.player.Player target, at.petrak.hexcasting.api.player.Sentinel sentinel)
      Specified by:
      setSentinel in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setFlight

      public void setFlight(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.player.FlightAbility flight)
      Specified by:
      setFlight in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setHarness

      public void setHarness(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.api.spell.casting.CastingHarness harness)
      Specified by:
      setHarness in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setPatterns

      public void setPatterns(net.minecraft.server.level.ServerPlayer target, List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern> patterns)
      Specified by:
      setPatterns in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isBrainswept

      public boolean isBrainswept(net.minecraft.world.entity.Mob mob)
      Specified by:
      isBrainswept in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getFlight

      public at.petrak.hexcasting.api.player.FlightAbility getFlight(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      getFlight in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getColorizer

      public at.petrak.hexcasting.api.misc.FrozenColorizer getColorizer(net.minecraft.world.entity.player.Player player)
      Specified by:
      getColorizer in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getSentinel

      public at.petrak.hexcasting.api.player.Sentinel getSentinel(net.minecraft.world.entity.player.Player player)
      Specified by:
      getSentinel in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getHarness

      public at.petrak.hexcasting.api.spell.casting.CastingHarness getHarness(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand)
      Specified by:
      getHarness in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getPatterns

      public List<at.petrak.hexcasting.api.spell.casting.ResolvedPattern> getPatterns(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      getPatterns in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • clearCastingData

      public void clearCastingData(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      clearCastingData in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • findManaHolder

      @Nullable public @Nullable at.petrak.hexcasting.api.addldata.ManaHolder findManaHolder(net.minecraft.world.item.ItemStack stack)
      Specified by:
      findManaHolder in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • findDataHolder

      @Nullable public @Nullable at.petrak.hexcasting.api.addldata.DataHolder findDataHolder(net.minecraft.world.item.ItemStack stack)
      Specified by:
      findDataHolder in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • findHexHolder

      @Nullable public @Nullable at.petrak.hexcasting.api.addldata.HexHolder findHexHolder(net.minecraft.world.item.ItemStack stack)
      Specified by:
      findHexHolder in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isColorizer

      public boolean isColorizer(net.minecraft.world.item.ItemStack stack)
      Specified by:
      isColorizer in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getRawColor

      public int getRawColor(at.petrak.hexcasting.api.misc.FrozenColorizer colorizer, float time, net.minecraft.world.phys.Vec3 position)
      Specified by:
      getRawColor in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • createBlockEntityType

      public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType<T> createBlockEntityType(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> func, net.minecraft.world.level.block.Block... blocks)
      Specified by:
      createBlockEntityType in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • tryPlaceFluid

      public boolean tryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      tryPlaceFluid in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getID

      public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.level.block.Block block)
      Specified by:
      getID in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getID

      public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.item.Item item)
      Specified by:
      getID in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getID

      public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.entity.npc.VillagerProfession profession)
      Specified by:
      getID in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getUnsealedIngredient

      public net.minecraft.world.item.crafting.Ingredient getUnsealedIngredient(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getUnsealedIngredient in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getTab

      public net.minecraft.world.item.CreativeModeTab getTab()
      Specified by:
      getTab in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isCorrectTierForDrops

      public boolean isCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs)
      Specified by:
      isCorrectTierForDrops in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • addEquipSlotFabric

      public net.minecraft.world.item.Item.Properties addEquipSlotFabric(net.minecraft.world.entity.EquipmentSlot slot)
      Specified by:
      addEquipSlotFabric in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • tags

      public at.petrak.hexcasting.xplat.IXplatTags tags()
      Specified by:
      tags in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isShearsCondition

      public net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder isShearsCondition()
      Specified by:
      isShearsCondition in interface at.petrak.hexcasting.xplat.IXplatAbstractions