Class BlockSetTypeBuilder
BlockSetType
s.
A BlockSetType
is used to tell the game various properties of related blocks, such as what sounds they should use.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(Identifier id) Builds aBlockSetType
from this builder's values without registering it.buttonClickOffSound
(SoundEvent buttonClickOffSound) Sets this block set type's button click off sound.buttonClickOnSound
(SoundEvent buttonClickOnSound) Sets this block set type's button click on sound.static BlockSetTypeBuilder
copyOf
(BlockSetTypeBuilder builder) Creates a newBlockSetTypeBuilder
that copies all of another builder's values.static BlockSetTypeBuilder
copyOf
(BlockSetType setType) Creates a newBlockSetTypeBuilder
that copies all of another block set type's values.doorCloseSound
(SoundEvent doorCloseSound) Sets this block set type's door close sound.doorOpenSound
(SoundEvent doorOpenSound) Sets this block set type's door open sound.pressurePlateClickOffSound
(SoundEvent pressurePlateClickOffSound) Sets this block set type's pressure plate click off sound.pressurePlateClickOnSound
(SoundEvent pressurePlateClickOnSound) Sets this block set type's pressure plate click on sound.register
(Identifier id) Builds and registers aBlockSetType
from this builder's values.soundGroup
(BlockSoundGroup soundGroup) Sets this block set type's sound group.trapdoorCloseSound
(SoundEvent trapdoorCloseSound) Sets this block set type's trapdoor close sound.trapdoorOpenSound
(SoundEvent trapdoorOpenSound) Sets this block set type's trapdoor open sound.
-
Constructor Details
-
BlockSetTypeBuilder
public BlockSetTypeBuilder()
-
-
Method Details
-
soundGroup
Sets this block set type's sound group.Defaults to
BlockSoundGroup.WOOD
.- Returns:
- this builder for chaining
-
doorCloseSound
Sets this block set type's door close sound.Defaults to
SoundEvents.BLOCK_WOODEN_DOOR_CLOSE
.- Returns:
- this builder for chaining
-
doorOpenSound
Sets this block set type's door open sound.Defaults to
SoundEvents.BLOCK_WOODEN_DOOR_OPEN
.- Returns:
- this builder for chaining
-
trapdoorCloseSound
Sets this block set type's trapdoor close sound.Defaults to
SoundEvents.BLOCK_WOODEN_TRAPDOOR_CLOSE
.- Returns:
- this builder for chaining
-
trapdoorOpenSound
Sets this block set type's trapdoor open sound.Defaults to
SoundEvents.BLOCK_WOODEN_TRAPDOOR_OPEN
.- Returns:
- this builder for chaining
-
pressurePlateClickOffSound
Sets this block set type's pressure plate click off sound.Defaults to
SoundEvents.BLOCK_WOODEN_PRESSURE_PLATE_CLICK_OFF
.- Returns:
- this builder for chaining
-
pressurePlateClickOnSound
Sets this block set type's pressure plate click on sound.Defaults to
SoundEvents.BLOCK_WOODEN_PRESSURE_PLATE_CLICK_ON
.- Returns:
- this builder for chaining
-
buttonClickOffSound
Sets this block set type's button click off sound.Defaults to
SoundEvents.BLOCK_WOODEN_BUTTON_CLICK_OFF
.- Returns:
- this builder for chaining
-
buttonClickOnSound
Sets this block set type's button click on sound.Defaults to
SoundEvents.BLOCK_WOODEN_BUTTON_CLICK_ON
.- Returns:
- this builder for chaining
-
copyOf
Creates a newBlockSetTypeBuilder
that copies all of another builder's values.- Parameters:
builder
- theBlockSetTypeBuilder
whose values are to be copied- Returns:
- the created copy
-
copyOf
Creates a newBlockSetTypeBuilder
that copies all of another block set type's values.- Parameters:
setType
- theBlockSetType
whose values are to be copied- Returns:
- the created copy
-
register
Builds and registers aBlockSetType
from this builder's values.Alternatively, you can use
build(Identifier)
to build without registering.
ThenBlockSetType.register(BlockSetType)
can be used to register it later.- Parameters:
id
- the id for the builtBlockSetType
- Returns:
- the built and registered
BlockSetType
-
build
Builds aBlockSetType
from this builder's values without registering it.Use
BlockSetType.register(BlockSetType)
to register it later.
Alternatively, you can useregister(Identifier)
to build and register it now.- Parameters:
id
- the id for the builtBlockSetType
- Returns:
- the built
BlockSetType
-