Class FabricXplatImpl

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

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

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

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.sounds.SoundEvent
    getSoundByID(net.minecraft.resources.ResourceLocation id)
     
    at.petrak.paucal.xplat.Platform
     
    void
    sendPacketNearS2C(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.paucal.api.msg.PaucalMessage packet)
     
    void
    sendPacketToPlayerS2C(net.minecraft.server.level.ServerPlayer target, at.petrak.paucal.api.msg.PaucalMessage packet)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface at.petrak.paucal.xplat.IXplatAbstractions

    init
  • Constructor Details

    • FabricXplatImpl

      public FabricXplatImpl()
  • Method Details

    • platform

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

      @Nullable public @Nullable net.minecraft.sounds.SoundEvent getSoundByID(net.minecraft.resources.ResourceLocation id)
      Specified by:
      getSoundByID in interface at.petrak.paucal.xplat.IXplatAbstractions
    • sendPacketToPlayerS2C

      public void sendPacketToPlayerS2C(net.minecraft.server.level.ServerPlayer target, at.petrak.paucal.api.msg.PaucalMessage packet)
      Specified by:
      sendPacketToPlayerS2C in interface at.petrak.paucal.xplat.IXplatAbstractions
    • sendPacketNearS2C

      public void sendPacketNearS2C(net.minecraft.world.phys.Vec3 pos, double radius, net.minecraft.server.level.ServerLevel dimension, at.petrak.paucal.api.msg.PaucalMessage packet)
      Specified by:
      sendPacketNearS2C in interface at.petrak.paucal.xplat.IXplatAbstractions