MCWorld

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.

crafttweaker.api.world.MCWorld

Methods

getBiome

Return type: crafttweaker.api.world.MCBiome

myMCWorld.getBiome(pos as crafttweaker.api.util.BlockPos);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided

getBlockState

Return type: crafttweaker.api.block.MCBlockState

myMCWorld.getBlockState(pos as crafttweaker.api.util.BlockPos);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided

getRedstonePower

Return type: int

myMCWorld.getRedstonePower(pos as crafttweaker.api.util.BlockPos, direction as crafttweaker.api.util.Direction);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided
directioncrafttweaker.api.util.DirectionNo description provided

getRedstonePowerFromNeighbors

Return type: int

myMCWorld.getRedstonePowerFromNeighbors(pos as crafttweaker.api.util.BlockPos);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided

getStrongPower

Return type: int

myMCWorld.getStrongPower(pos as crafttweaker.api.util.BlockPos);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided

getTileData

Return type: crafttweaker.api.data.IData

myMCWorld.getTileData(pos as crafttweaker.api.util.BlockPos);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided

isBlockPowered

Return type: boolean

myMCWorld.isBlockPowered(pos as crafttweaker.api.util.BlockPos);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided

isRainingAt

Return type: boolean

myMCWorld.isRainingAt(pos as crafttweaker.api.util.BlockPos);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided

isRemote

Return type: boolean

myMCWorld.isRemote();

setBlockState

Return type: boolean

myMCWorld.setBlockState(pos as crafttweaker.api.util.BlockPos, state as crafttweaker.api.block.MCBlockState);
ParameterTypeDescription
poscrafttweaker.api.util.BlockPosNo description provided
statecrafttweaker.api.block.MCBlockStateNo description provided

Properties

NameTypeHas GetterHas Setter
dayTimebooleantruefalse
difficultyStringtruefalse
difficultyLockedbooleantruefalse
dimensionStringtruefalse
gameTimelongtruefalse
hardcorebooleantruefalse
nightTimebooleantruefalse
rainingbooleantruefalse
remotebooleantruefalse
seaLevelinttruefalse
thunderingbooleantruefalse