跳转至

Global

原文:[Global]

基础原型扩展

  • String#namespace: String - 命名空间字符串中的命名空间部分,例如 "minecraft:oak_planks" 中即为 "minecraft"。如果没有 :,则默认为 "minecraft"。
  • String#path: String - 命名空间字符串中的路径部分,例如 "minecraft:oak_planks" 中即为 "oak_planks"

常量

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

对象

  • global: Map
  • console: Console

  • Platform
  • ResourceLocation
  • Utils
  • Java
  • Text
  • UUID
  • JsonIO
  • Block
  • Item
  • Ingredient
  • IngredientHelper
  • NBT
  • NBTIO
  • Direction
  • Facing
  • AABB
  • Fluid
  • Color
  • BlockStatePredicate

包装类

名称
JavaMath java.lang.Math
Blocks net.minecraft.world.level.block.Blocks
Items net.minecraft.world.item.Items
Stats net.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, Vec3d net.minecraft.world.phys.Vec3
Vec3i net.minecraft.core.Vec3i