Skip to main content

Global

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

Wrapped Classes

Wraps class
  • Wraps class
  • Vec3
  • Vec3d
  • Vec3i
  • BlockPos: Wraps
  • class
  • Wraps class
  • Wraps class
    NameClass
    JavaMathjava.lang.Math
    Blocksnet.minecraft.world.level.block.Blocks
    Itemsnet.minecraft.world.item.Items
    Statsnet.minecraft.stats.Stats
    DecorationGenerationStep: net.minecraft.world.level.levelgen.GenerationStep.Decoration
    CarvingGenerationStep: net.minecraft.world.level.levelgen.GenerationStep.Carving
    BlockPos net.minecraft.core.BlockPos
    DamageSource: net.minecraft.world.damagesource.DamageSource
    BlockProperties: net.minecraft.world.level.block.state.properties.BlockStateProperties
    Vec3, Vec3dnet.minecraft.world.phys.Vec3
    Vec3inet.minecraft.core.Vec3i