Class WoodTypeRegistry
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.block.type.WoodTypeRegistry
Deprecated.
This class allows registering
WoodType
s.
A WoodType
is used to tell the game what textures signs should use, as well as sounds for both signs and fence gates.
Regular sign textures are stored at [namespace]/textures/entity/signs/[path].png
.
Hanging sign textures are stored at [namespace]/textures/entity/signs/hanging/[path].png
.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic WoodType
register
(Identifier id, BlockSetType setType) Deprecated.Creates and registers aWoodType
.static WoodType
register
(Identifier id, BlockSetType setType, BlockSoundGroup soundType, BlockSoundGroup hangingSignSoundType, SoundEvent fenceGateClose, SoundEvent fenceGateOpen) Deprecated.Creates and registers aWoodType
.
-
Method Details
-
register
Deprecated.Creates and registers aWoodType
.- Parameters:
id
- the id of thisWoodType
setType
- theBlockSetType
for this wood type- Returns:
- a new
WoodType
-
register
public static WoodType register(Identifier id, BlockSetType setType, BlockSoundGroup soundType, BlockSoundGroup hangingSignSoundType, SoundEvent fenceGateClose, SoundEvent fenceGateOpen) Deprecated.Creates and registers aWoodType
.- Parameters:
id
- the id of thisWoodType
setType
- theBlockSetType
for this wood typesoundType
- theBlockSoundGroup
for this wood typehangingSignSoundType
- theBlockSoundGroup
for this wood type's hanging signfenceGateClose
- theSoundEvent
for when this wood type's fence gate closesfenceGateOpen
- theSoundEvent
for when this wood type's fence gate opens- Returns:
- a new
WoodType
-
WoodTypeBuilder