Global¶
原文:[Global]
基础原型扩展¶
String#namespace: String - 命名空间字符串中的命名空间部分,例如 "minecraft:oak_planks" 中即为 "minecraft"。如果没有:,则默认为 "minecraft"。String#path: String - 命名空间字符串中的路径部分,例如 "minecraft:oak_planks" 中即为 "oak_planks"
常量¶
SECOND: Number = 1000MINUTE: Number = 60000 (60 * SECOND)HOUR: Number = 3600000 (60 * MINUTE)
对象¶
global: Mapconsole: Console
类¶
PlatformResourceLocationUtilsJavaTextUUIDJsonIOBlockItemIngredientIngredientHelperNBTNBTIODirectionFacingAABBFluidColorBlockStatePredicate
包装类¶
| 名称 | 类 |
|---|---|
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 |