Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
111 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/com/fureniku/roads/blocks/DecorativeRoadObjectBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.fureniku.roads.blocks; | ||
|
||
import com.fureniku.metropolis.blocks.decorative.MetroBlockDecorativeBuilder; | ||
import com.fureniku.metropolis.enums.BlockOffsetDirection; | ||
import com.fureniku.metropolis.enums.DecorativeBuilderType; | ||
import net.minecraft.world.level.block.state.BlockBehaviour; | ||
|
||
public class DecorativeRoadObjectBuilder extends MetroBlockDecorativeBuilder { | ||
|
||
public DecorativeRoadObjectBuilder(BlockBehaviour.Properties props) { | ||
this(props, DecorativeBuilderType.DECORATIVE); | ||
} | ||
|
||
public DecorativeRoadObjectBuilder(BlockBehaviour.Properties props, DecorativeBuilderType type) { | ||
super(props, type); | ||
setOffsetDirection(BlockOffsetDirection.DOWN); | ||
} | ||
|
||
public DecorativeRoadObjectBuilder(BlockBehaviour.Properties props, float width, float height) { | ||
super(props, DecorativeBuilderType.DECORATIVE); | ||
setOffsetDirection(BlockOffsetDirection.DOWN); | ||
setShape(width, height); | ||
} | ||
|
||
public DecorativeRoadObjectBuilder(BlockBehaviour.Properties props, DecorativeBuilderType type, float width, float height) { | ||
super(props, type); | ||
setOffsetDirection(BlockOffsetDirection.DOWN); | ||
setShape(width, height); | ||
} | ||
} |
Oops, something went wrong.