Class BlockWrapper
java.lang.Object
dev.latvian.mods.kubejs.plugin.builtin.wrapper.BlockWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.latvian.mods.rhino.type.TypeInfostatic final dev.latvian.mods.rhino.type.TypeInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockPredicatecustom(BlockPredicate predicate) static BlockEntityPredicateentity(net.minecraft.resources.ResourceLocation id) static Collection<net.minecraft.world.level.block.state.BlockState> static net.minecraft.world.level.block.BlockgetBlock(net.minecraft.resources.ResourceLocation id) static @Nullable net.minecraft.resources.ResourceLocationgetId(net.minecraft.world.level.block.Block block) static List<net.minecraft.resources.ResourceLocation> getTaggedIds(net.minecraft.resources.ResourceLocation tag) static BlockIDPredicateid(net.minecraft.resources.ResourceLocation id) static BlockIDPredicatestatic net.minecraft.world.level.block.state.BlockStateparseBlockState(RegistryAccessContainer registries, String string) static voidregisterBuildingMaterial(dev.latvian.mods.rhino.Context cx, RegistryKubeEvent<net.minecraft.world.level.block.Block> event, KubeResourceLocation id) static voidregisterBuildingMaterial(dev.latvian.mods.rhino.Context cx, RegistryKubeEvent<net.minecraft.world.level.block.Block> event, KubeResourceLocation id, BuildingMaterialProperties properties) static net.minecraft.world.level.block.state.BlockStatewithProperties(net.minecraft.world.level.block.state.BlockState state, Map<?, ?> properties) static net.minecraft.world.level.block.state.BlockStatewrapBlockState(RegistryAccessContainer registries, Object o) static net.minecraft.world.level.block.state.properties.BlockSetTypewrapSetType(dev.latvian.mods.rhino.Context cx, Object from, dev.latvian.mods.rhino.type.TypeInfo target)
-
Field Details
-
TYPE_INFO
public static final dev.latvian.mods.rhino.type.TypeInfo TYPE_INFO -
STATE_TYPE_INFO
public static final dev.latvian.mods.rhino.type.TypeInfo STATE_TYPE_INFO
-
-
Constructor Details
-
BlockWrapper
public BlockWrapper()
-
-
Method Details
-
id
-
id
public static BlockIDPredicate id(net.minecraft.resources.ResourceLocation id, Map<String, Object> properties) -
entity
-
custom
-
getFacing
-
getBlock
@Info("Gets a Block from a block id") public static net.minecraft.world.level.block.Block getBlock(net.minecraft.resources.ResourceLocation id) -
getId
@Info("Gets a blocks id from the Block") @Nullable public static @Nullable net.minecraft.resources.ResourceLocation getId(net.minecraft.world.level.block.Block block) -
getTypeList
-
getTaggedIds
-
getAllBlockStates
-
parseBlockState
public static net.minecraft.world.level.block.state.BlockState parseBlockState(RegistryAccessContainer registries, String string) -
wrapSetType
public static net.minecraft.world.level.block.state.properties.BlockSetType wrapSetType(dev.latvian.mods.rhino.Context cx, Object from, dev.latvian.mods.rhino.type.TypeInfo target) -
wrapBlockState
@Info("Parses a block state from the input string. May throw for invalid inputs!") public static net.minecraft.world.level.block.state.BlockState wrapBlockState(RegistryAccessContainer registries, Object o) -
withProperties
public static net.minecraft.world.level.block.state.BlockState withProperties(net.minecraft.world.level.block.state.BlockState state, Map<?, ?> properties) -
registerBuildingMaterial
public static void registerBuildingMaterial(dev.latvian.mods.rhino.Context cx, RegistryKubeEvent<net.minecraft.world.level.block.Block> event, KubeResourceLocation id, BuildingMaterialProperties properties) -
registerBuildingMaterial
public static void registerBuildingMaterial(dev.latvian.mods.rhino.Context cx, RegistryKubeEvent<net.minecraft.world.level.block.Block> event, KubeResourceLocation id)
-