ICRender
Index
Variables
constMODE_EXCLUDE
Used to specify that the block should be absent to satisfy condition.
constMODE_INCLUDE
Used to specify that the block should be present to satisfy condition.
Functions
AND
Constructs new ICRender.AND condition.
Parameters
rest...conditions: CONDITION[]
Returns CONDITION
BLOCK
Constructs new ICRender.BLOCK condition.
Parameters
x: number
is relative x coordinate
y: number
is relative y coordinate
z: number
is relative z coordinate
group: Group
blocks group to check the condition for
exclude: boolean
if true, the blocks from the group make the condition evaluate as false, as true otherwise
Returns CONDITION
BlockState
- since: 2.3.1b116
Constructs new ICRender.BlockState condition that uses block state data (it must match the value) to display.
Parameters
x: number
is relative x coordinate
y: number
is relative y coordinate
z: number
is relative z coordinate
state: number
one of EBlockStates values or custom one of relative block
value: number
value to match selected state
Returns CONDITION
NOT
Constructs new ICRender.NOT condition.
Parameters
condition: CONDITION
condition to be inverted
Returns CONDITION
OR
Constructs new ICRender.OR condition.
Parameters
rest...conditions: CONDITION[]
Returns CONDITION
RANDOM
- since: 2.0.2b23
Constructs new ICRender.RANDOM_CONDITION condition.
Parameters
value: number
value that a generated random integer number should be for the condition to evaluate as true
max: number
maximum value for the generator
optionalseed: number
seed to be used for random numbers generation
Returns RANDOM_CONDITION
getGroup
Parameters
name: string
group name
Returns ICRender.Group
Block group by it's name, if no group with specified name exist, this function creates a new one.
getUnnamedGroup
Creates a new group with a unique name.
Returns ICRender.Group
Class used to define block models that depend on surrounding blocks. Some examples of such blocks are wires, pipes, block structure parts, etc.