Class ForgeXplatImpl

java.lang.Object
at.petrak.hexcasting.forge.xplat.ForgeXplatImpl
All Implemented Interfaces:
at.petrak.hexcasting.xplat.IXplatAbstractions

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

    Fields
    Modifier and Type
    Field
    Description
    static final UUID
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     

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

    HEXCASTING, 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
    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)
     
    boolean
    drainAllFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
     
    @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolder
    findDataHolder(net.minecraft.world.entity.Entity entity)
     
    @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolder
    findDataHolder(net.minecraft.world.item.ItemStack stack)
     
    @Nullable at.petrak.hexcasting.api.addldata.ADHexHolder
    findHexHolder(net.minecraft.world.item.ItemStack stack)
     
    @Nullable at.petrak.hexcasting.api.addldata.ADMediaHolder
    findMediaHolder(net.minecraft.server.level.ServerPlayer player)
     
    @Nullable at.petrak.hexcasting.api.addldata.ADMediaHolder
    findMediaHolder(net.minecraft.world.item.ItemStack stack)
     
    @Nullable at.petrak.hexcasting.api.addldata.ADVariantItem
    findVariantHolder(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.ActionRegistryEntry>
     
    at.petrak.hexcasting.api.player.AltioraAbility
    getAltiora(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.arithmetic.Arithmetic>
     
    at.petrak.hexcasting.api.pigment.ColorProvider
    getColorProvider(at.petrak.hexcasting.api.pigment.FrozenPigment pigment)
     
    net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.vm.ContinuationFrame.Type<?>>
     
    net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.sideeffects.EvalSound>
     
    at.petrak.hexcasting.api.player.FlightAbility
    getFlight(net.minecraft.server.level.ServerPlayer player)
     
    net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.iota.IotaType<?>>
     
    getModName(String namespace)
     
    List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern>
    getPatternsSavedInUi(net.minecraft.server.level.ServerPlayer player)
     
    at.petrak.hexcasting.interop.pehkui.PehkuiInterop.ApiAbstraction
     
    at.petrak.hexcasting.api.pigment.FrozenPigment
    getPigment(net.minecraft.world.entity.player.Player player)
     
    at.petrak.hexcasting.api.player.Sentinel
    getSentinel(net.minecraft.world.entity.player.Player player)
     
    net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.castables.SpecialHandler.Factory<?>>
     
    at.petrak.hexcasting.api.casting.eval.vm.CastingVM
    getStaffcastVM(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand)
     
    net.minecraft.world.item.crafting.Ingredient
    getUnsealedIngredient(net.minecraft.world.item.ItemStack stack)
     
    void
     
    boolean
    isBrainswept(net.minecraft.world.entity.Mob e)
     
    boolean
    isBreakingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.entity.player.Player player)
     
    boolean
    isCorrectTierForDrops(net.minecraft.world.item.Tier tier, net.minecraft.world.level.block.state.BlockState bs)
     
    boolean
     
    boolean
     
    boolean
    isPigment(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isPlacingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack blockStack, @Nullable net.minecraft.world.entity.player.Player player)
     
    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.msgs.IMessage packet)
     
    void
    sendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.msgs.IMessage packet)
     
    void
    sendPacketTracking(net.minecraft.world.entity.Entity entity, at.petrak.hexcasting.common.msgs.IMessage packet)
     
    void
    setAltiora(net.minecraft.world.entity.player.Player player, @Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora)
     
    void
    setBrainsweepAddlData(net.minecraft.world.entity.Mob mob)
     
    void
    setFlight(net.minecraft.server.level.ServerPlayer player, at.petrak.hexcasting.api.player.FlightAbility flight)
     
    void
    setPatterns(net.minecraft.server.level.ServerPlayer player, List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> patterns)
     
    @Nullable at.petrak.hexcasting.api.pigment.FrozenPigment
    setPigment(net.minecraft.world.entity.player.Player player, @Nullable at.petrak.hexcasting.api.pigment.FrozenPigment pigment)
     
    void
    setSentinel(net.minecraft.world.entity.player.Player player, @Nullable at.petrak.hexcasting.api.player.Sentinel sentinel)
     
    void
    setStaffcastImage(net.minecraft.server.level.ServerPlayer player, @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image)
     
    at.petrak.hexcasting.xplat.IXplatTags
     
    net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
    toVanillaClientboundPacket(at.petrak.hexcasting.common.msgs.IMessage message)
     
    boolean
    tryPlaceFluid(net.minecraft.world.level.Level level, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos, 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
  • Field Details

  • Constructor Details

    • ForgeXplatImpl

      public ForgeXplatImpl()
  • 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
    • setBrainsweepAddlData

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

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

      public void setAltiora(net.minecraft.world.entity.player.Player player, @Nullable @Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora)
      Specified by:
      setAltiora in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setPigment

      @Nullable public @Nullable at.petrak.hexcasting.api.pigment.FrozenPigment setPigment(net.minecraft.world.entity.player.Player player, @Nullable @Nullable at.petrak.hexcasting.api.pigment.FrozenPigment pigment)
      Specified by:
      setPigment in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setSentinel

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

      public void setStaffcastImage(net.minecraft.server.level.ServerPlayer player, @Nullable @Nullable at.petrak.hexcasting.api.casting.eval.vm.CastingImage image)
      Specified by:
      setStaffcastImage in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • setPatterns

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

      public boolean isBrainswept(net.minecraft.world.entity.Mob e)
      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
    • getAltiora

      public at.petrak.hexcasting.api.player.AltioraAbility getAltiora(net.minecraft.world.entity.player.Player player)
      Specified by:
      getAltiora in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getPigment

      public at.petrak.hexcasting.api.pigment.FrozenPigment getPigment(net.minecraft.world.entity.player.Player player)
      Specified by:
      getPigment 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
    • getStaffcastVM

      public at.petrak.hexcasting.api.casting.eval.vm.CastingVM getStaffcastVM(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.InteractionHand hand)
      Specified by:
      getStaffcastVM in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getPatternsSavedInUi

      public List<at.petrak.hexcasting.api.casting.eval.ResolvedPattern> getPatternsSavedInUi(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      getPatternsSavedInUi 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
    • findMediaHolder

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

      @Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADMediaHolder findMediaHolder(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      findMediaHolder in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • findDataHolder

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

      @Nullable public @Nullable at.petrak.hexcasting.api.addldata.ADIotaHolder findDataHolder(net.minecraft.world.entity.Entity entity)
      Specified by:
      findDataHolder in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • findHexHolder

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

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

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

      public at.petrak.hexcasting.api.pigment.ColorProvider getColorProvider(at.petrak.hexcasting.api.pigment.FrozenPigment pigment)
      Specified by:
      getColorProvider in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • sendPacketToPlayer

      public void sendPacketToPlayer(net.minecraft.server.level.ServerPlayer target, at.petrak.hexcasting.common.msgs.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.msgs.IMessage packet)
      Specified by:
      sendPacketNear in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • sendPacketTracking

      public void sendPacketTracking(net.minecraft.world.entity.Entity entity, at.petrak.hexcasting.common.msgs.IMessage packet)
      Specified by:
      sendPacketTracking in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • toVanillaClientboundPacket

      public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> toVanillaClientboundPacket(at.petrak.hexcasting.common.msgs.IMessage message)
      Specified by:
      toVanillaClientboundPacket 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.level.material.Fluid fluid)
      Specified by:
      tryPlaceFluid in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • drainAllFluid

      public boolean drainAllFluid(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Specified by:
      drainAllFluid 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
    • 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
    • getModName

      public String getModName(String namespace)
      Specified by:
      getModName in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getActionRegistry

      public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.ActionRegistryEntry> getActionRegistry()
      Specified by:
      getActionRegistry in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getSpecialHandlerRegistry

      public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.castables.SpecialHandler.Factory<?>> getSpecialHandlerRegistry()
      Specified by:
      getSpecialHandlerRegistry in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getIotaTypeRegistry

      public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.iota.IotaType<?>> getIotaTypeRegistry()
      Specified by:
      getIotaTypeRegistry in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getArithmeticRegistry

      public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.arithmetic.Arithmetic> getArithmeticRegistry()
      Specified by:
      getArithmeticRegistry in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getContinuationTypeRegistry

      public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.vm.ContinuationFrame.Type<?>> getContinuationTypeRegistry()
      Specified by:
      getContinuationTypeRegistry in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getEvalSoundRegistry

      public net.minecraft.core.Registry<at.petrak.hexcasting.api.casting.eval.sideeffects.EvalSound> getEvalSoundRegistry()
      Specified by:
      getEvalSoundRegistry in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isBreakingAllowed

      public boolean isBreakingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.entity.player.Player player)
      Specified by:
      isBreakingAllowed in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • isPlacingAllowed

      public boolean isPlacingAllowed(net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack blockStack, @Nullable @Nullable net.minecraft.world.entity.player.Player player)
      Specified by:
      isPlacingAllowed in interface at.petrak.hexcasting.xplat.IXplatAbstractions
    • getPehkuiApi

      public at.petrak.hexcasting.interop.pehkui.PehkuiInterop.ApiAbstraction getPehkuiApi()
      Specified by:
      getPehkuiApi in interface at.petrak.hexcasting.xplat.IXplatAbstractions