Class BlockSetTypeRegistry
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.block.type.BlockSetTypeRegistry
Deprecated.
This class allows registering
BlockSetType
s.
A BlockSetType
is used to tell the game what sounds various related blocks should use.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlockSetType
register
(Identifier id, BlockSoundGroup soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn) Deprecated.Creates and registers aBlockSetType
.static BlockSetType
Deprecated.Creates and registers aBlockSetType
with the regular wood sounds.
-
Method Details
-
registerWood
Deprecated.Creates and registers aBlockSetType
with the regular wood sounds.- Parameters:
id
- the id of thisBlockSetType
- Returns:
- a new
BlockSetType
-
register
public static BlockSetType register(Identifier id, BlockSoundGroup soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn) Deprecated.Creates and registers aBlockSetType
.- Parameters:
id
- the id of thisBlockSetType
soundType
- theBlockSoundGroup
for this block setdoorClose
- theSoundEvent
for when this block set's door closesdoorOpen
- theSoundEvent
for when this block set's door openstrapdoorClose
- theSoundEvent
for when this block set's trapdoor closestrapdoorOpen
- theSoundEvent
for when this block set's trapdoor openspressurePlateClickOff
- theSoundEvent
for when this block set's pressure plate is unpressedpressurePlateClickOn
- theSoundEvent
for when this block set's pressure plate is pressedbuttonClickOff
- theSoundEvent
for when this block set's button is unpressedbuttonClickOn
- theSoundEvent
for when this block set's button is pressed- Returns:
- a new
BlockSetType
-
BlockSetTypeBuilder