Class ExpandGameType

java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandGameType

@ZenRegister public class ExpandGameType extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getId(net.minecraft.world.level.GameType internal)
     
    static net.minecraft.network.chat.Component
    getLongDisplayName(net.minecraft.world.level.GameType internal)
     
    static String
    getName(net.minecraft.world.level.GameType internal)
     
    static net.minecraft.network.chat.Component
    getShortDisplayName(net.minecraft.world.level.GameType internal)
     
    static boolean
    isBlockPlacingRestricted(net.minecraft.world.level.GameType internal)
     
    static boolean
    isCreative(net.minecraft.world.level.GameType internal)
     
    static boolean
    isSurvival(net.minecraft.world.level.GameType internal)
     
    static void
    updatePlayerAbilities(net.minecraft.world.level.GameType internal, net.minecraft.world.entity.player.Abilities abilities)
     

    Methods inherited from class java.lang.Object

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

    • ExpandGameType

      public ExpandGameType()
  • Method Details

    • getId

      public static int getId(net.minecraft.world.level.GameType internal)
    • getName

      public static String getName(net.minecraft.world.level.GameType internal)
    • getLongDisplayName

      public static net.minecraft.network.chat.Component getLongDisplayName(net.minecraft.world.level.GameType internal)
    • getShortDisplayName

      public static net.minecraft.network.chat.Component getShortDisplayName(net.minecraft.world.level.GameType internal)
    • updatePlayerAbilities

      public static void updatePlayerAbilities(net.minecraft.world.level.GameType internal, net.minecraft.world.entity.player.Abilities abilities)
    • isBlockPlacingRestricted

      public static boolean isBlockPlacingRestricted(net.minecraft.world.level.GameType internal)
    • isCreative

      public static boolean isCreative(net.minecraft.world.level.GameType internal)
    • isSurvival

      public static boolean isSurvival(net.minecraft.world.level.GameType internal)