Kerby64
Preparing search index...
voxel/block
Block
Class Block
Index
Constructors
constructor
Properties
size
tile
Size
Methods
add
Image
To
Atlas
generate
Material
generate
Texture
Atlas
get
Block
Type
From
Id
get
Face
Colors
get
Texture
Atlas
updatewater
Texture
Constructors
constructor
new
Block
()
:
Block
Returns
Block
Properties
Static
size
size
:
number
= 1
Static
tile
Size
tileSize
:
number
= 32
Methods
Static
add
Image
To
Atlas
addImageToAtlas
(
imgUrl
:
string
,
index
:
number
,
dy
:
number
,
color
:
Color4
,
)
:
Promise
<
void
>
Parameters
imgUrl
:
string
index
:
number
dy
:
number
color
:
Color4
Returns
Promise
<
void
>
Static
generate
Material
generateMaterial
(
scene
:
LevelScene
)
:
ToonMaterial
Parameters
scene
:
LevelScene
Returns
ToonMaterial
Static
generate
Texture
Atlas
generateTextureAtlas
(
scene
:
LevelScene
)
:
DynamicTexture
Parameters
scene
:
LevelScene
Returns
DynamicTexture
Static
get
Block
Type
From
Id
getBlockTypeFromId
(
id
:
number
,
)
:
|
"bedrock"
|
"jukebox"
|
"debug"
|
"debug2"
|
"water"
|
"diamond_ore"
|
"gold_ore"
|
"redstone_ore"
|
"coal_ore"
|
"emerald_ore"
|
"lapis_ore"
|
"iron_ore"
|
"oak_leaves"
|
"oak_log"
|
"oak_planks"
|
"tnt"
|
"bookshelf"
|
"coal_block"
|
"hay_block"
|
"crafting_table"
|
"dirt"
|
"stone"
|
"glass"
|
"obsidian"
|
"grass_block"
|
"sand"
|
"gravel"
|
"clay"
|
"snow"
|
"ice"
|
"cobblestone"
|
"stone_bricks"
|
"bricks"
|
"glowstone"
|
"furnace"
|
"pumpkin"
|
"carved_pumpkin"
|
"air"
Parameters
id
:
number
Returns
|
"bedrock"
|
"jukebox"
|
"debug"
|
"debug2"
|
"water"
|
"diamond_ore"
|
"gold_ore"
|
"redstone_ore"
|
"coal_ore"
|
"emerald_ore"
|
"lapis_ore"
|
"iron_ore"
|
"oak_leaves"
|
"oak_log"
|
"oak_planks"
|
"tnt"
|
"bookshelf"
|
"coal_block"
|
"hay_block"
|
"crafting_table"
|
"dirt"
|
"stone"
|
"glass"
|
"obsidian"
|
"grass_block"
|
"sand"
|
"gravel"
|
"clay"
|
"snow"
|
"ice"
|
"cobblestone"
|
"stone_bricks"
|
"bricks"
|
"glowstone"
|
"furnace"
|
"pumpkin"
|
"carved_pumpkin"
|
"air"
Static
get
Face
Colors
getFaceColors
(
key
:
|
"bedrock"
|
"jukebox"
|
"debug"
|
"debug2"
|
"water"
|
"diamond_ore"
|
"gold_ore"
|
"redstone_ore"
|
"coal_ore"
|
"emerald_ore"
|
"lapis_ore"
|
"iron_ore"
|
"oak_leaves"
|
"oak_log"
|
"oak_planks"
|
"tnt"
|
"bookshelf"
|
"coal_block"
|
"hay_block"
|
"crafting_table"
|
"dirt"
|
"stone"
|
"glass"
|
"obsidian"
|
"grass_block"
|
"sand"
|
"gravel"
|
"clay"
|
"snow"
|
"ice"
|
"cobblestone"
|
"stone_bricks"
|
"bricks"
|
"glowstone"
|
"furnace"
|
"pumpkin"
|
"carved_pumpkin"
|
"air"
,
)
:
Color4
[]
Parameters
key
:
|
"bedrock"
|
"jukebox"
|
"debug"
|
"debug2"
|
"water"
|
"diamond_ore"
|
"gold_ore"
|
"redstone_ore"
|
"coal_ore"
|
"emerald_ore"
|
"lapis_ore"
|
"iron_ore"
|
"oak_leaves"
|
"oak_log"
|
"oak_planks"
|
"tnt"
|
"bookshelf"
|
"coal_block"
|
"hay_block"
|
"crafting_table"
|
"dirt"
|
"stone"
|
"glass"
|
"obsidian"
|
"grass_block"
|
"sand"
|
"gravel"
|
"clay"
|
"snow"
|
"ice"
|
"cobblestone"
|
"stone_bricks"
|
"bricks"
|
"glowstone"
|
"furnace"
|
"pumpkin"
|
"carved_pumpkin"
|
"air"
Returns
Color4
[]
Static
get
Texture
Atlas
getTextureAtlas
()
:
DynamicTexture
Returns
DynamicTexture
Static
updatewater
Texture
updatewaterTexture
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
size
tile
Size
Methods
add
Image
To
Atlas
generate
Material
generate
Texture
Atlas
get
Block
Type
From
Id
get
Face
Colors
get
Texture
Atlas
updatewater
Texture
Kerby64
Loading...