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

Name Class JavaMath java.lang.Math Blocks net.minecraft.world.level.block.Blocks Items net.minecraft.world.item.Items Stats net.minecraft.stats.Stats DecorationGenerationStep: Wraps net.minecraft.world.level.levelgen.GenerationStep.Decoration class CarvingGenerationStep: Wraps net.minecraft.world.level.levelgen.GenerationStep.Carving class Vec3Vec3dBlockPos 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 Vec3, Vec3d net.minecraft.world.phys.Vec3 Vec3i net.minecraft.core.Vec3i