generated from QuiltMC/quilt-template-mod
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from DebuggyTeam/falk_work
Add server translation option, clean up BlockType and block creation
- Loading branch information
Showing
27 changed files
with
653 additions
and
74 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
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
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
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
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
17 changes: 15 additions & 2 deletions
17
src/main/java/io/github/debuggyteam/architecture_extensions/blocks/ArchBlock.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 |
---|---|---|
@@ -1,20 +1,33 @@ | ||
package io.github.debuggyteam.architecture_extensions.blocks; | ||
|
||
import org.quiltmc.qsl.block.extensions.api.QuiltBlockSettings; | ||
|
||
import io.github.debuggyteam.architecture_extensions.api.BlockType.TypedGroupedBlock; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.StairsBlock; | ||
import net.minecraft.text.MutableText; | ||
|
||
public class ArchBlock extends StairsBlock implements TypedGrouped { | ||
protected final TypedGroupedBlock typedGroupedBlock; | ||
|
||
// This is a super class of settings. | ||
public ArchBlock(BlockState blockState, Settings settings, TypedGroupedBlock typedGrouped) { | ||
public ArchBlock(BlockState blockState, Settings settings, TypedGroupedBlock typedGroupedBlock) { | ||
super(blockState, settings); | ||
this.typedGroupedBlock = typedGrouped; | ||
this.typedGroupedBlock = typedGroupedBlock; | ||
} | ||
|
||
public ArchBlock(Block block, QuiltBlockSettings settings, TypedGroupedBlock typedGroupedBlock) { | ||
this(block.getDefaultState(), settings, typedGroupedBlock); | ||
} | ||
|
||
@Override | ||
public TypedGroupedBlock getTypedGroupedBlock() { | ||
return typedGroupedBlock; | ||
} | ||
|
||
@Override | ||
public MutableText getName() { | ||
return getServerTranslation(); | ||
} | ||
} |
Oops, something went wrong.