Skip to main content

Global

Globally available classes and constants

Primitive prototype additions
  • String#namespace: String - namespace part of namespaced string, aka of "minecraft:oak_planks" it's "minecraft". Defaults to "minecraft" if there's no :.
  • String#path: String - path part of namespaced string, aka of "minecraft:oak_planks" it's "oak_planks"

Constants

  • SECOND: Number = 1000
  • MINUTE: Number = 60000 (60 * SECOND)
  • HOUR: Number = 3600000 (60 * MINUTE)

Objects

  • global: Map<String, Object>
  • console: Console

Classes

  • Platform
  • JavaMath: Wraps java.lang.Math class
  • ResourceLocation
  • Utils
  • Java
  • Text
  • UUID
  • JsonIO
  • Block
  • Blocks: Wraps net.minecraft.world.level.block.Blocks class
  • Item
  • Items: Wraps net.minecraft.world.item.Items class
  • Ingredient
  • IngredientHelper
  • NBT
  • NBTIO
  • Direction
  • Facing
  • AABB
  • Stats: Wraps net.minecraft.stats.Stats class
  • Fluid
  • Color
  • BlockStatePredicate
  • DecorationGenerationStep: Wraps net.minecraft.world.level.levelgen.GenerationStep.Decoration class
  • CarvingGenerationStep: Wraps net.minecraft.world.level.levelgen.GenerationStep.Carving class
  • Vec3
  • Vec3d
  • Vec3i
  • BlockPos: Wraps net.minecraft.core.BlockPos class
  • DamageSource: Wraps net.minecraft.world.damagesource.DamageSource class
  • BlockProperties: Wraps net.minecraft.world.level.block.state.properties.BlockStateProperties class