Class NeoForgePlatformHelper

java.lang.Object
com.blamejared.controlling.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class NeoForgePlatformHelper extends Object implements IPlatformHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.network.chat.Component
    getKeyName(net.minecraft.client.KeyMapping mapping)
     
    void
    handleKeyPress(NewKeyBindsScreen screen, net.minecraft.client.Options options, int key, int scancode, int mods)
     
    boolean
    hasConflictingModifier(net.minecraft.client.KeyMapping keybinding, net.minecraft.client.KeyMapping other)
     
    boolean
    isKeyCodeModifier(com.mojang.blaze3d.platform.InputConstants.Key key)
     
    void
    setKey(net.minecraft.client.Options options, net.minecraft.client.KeyMapping keybinding, com.mojang.blaze3d.platform.InputConstants.Key key)
     
    void
    setToDefault(net.minecraft.client.Options options, net.minecraft.client.KeyMapping keybinding)
     

    Methods inherited from class java.lang.Object

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

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • hasConflictingModifier

      public boolean hasConflictingModifier(net.minecraft.client.KeyMapping keybinding, net.minecraft.client.KeyMapping other)
      Specified by:
      hasConflictingModifier in interface IPlatformHelper
    • setKey

      public void setKey(net.minecraft.client.Options options, net.minecraft.client.KeyMapping keybinding, com.mojang.blaze3d.platform.InputConstants.Key key)
      Specified by:
      setKey in interface IPlatformHelper
    • isKeyCodeModifier

      public boolean isKeyCodeModifier(com.mojang.blaze3d.platform.InputConstants.Key key)
      Specified by:
      isKeyCodeModifier in interface IPlatformHelper
    • getKeyName

      public net.minecraft.network.chat.Component getKeyName(net.minecraft.client.KeyMapping mapping)
      Specified by:
      getKeyName in interface IPlatformHelper
    • handleKeyPress

      public void handleKeyPress(NewKeyBindsScreen screen, net.minecraft.client.Options options, int key, int scancode, int mods)
      Specified by:
      handleKeyPress in interface IPlatformHelper
    • setToDefault

      public void setToDefault(net.minecraft.client.Options options, net.minecraft.client.KeyMapping keybinding)
      Specified by:
      setToDefault in interface IPlatformHelper