-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
6d1ac7f
commit a7ad98b
Showing
17 changed files
with
149 additions
and
33 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
12 changes: 11 additions & 1 deletion
12
src/main/java/net/zepalesque/redux/block/natural/GoldenCloversBlock.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,10 +1,20 @@ | ||
package net.zepalesque.redux.block.natural; | ||
|
||
import com.aetherteam.aether.block.AetherBlockStateProperties; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.PinkPetalsBlock; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import net.minecraft.world.level.block.state.StateDefinition; | ||
|
||
// TODO: Make these different somehow | ||
public class GoldenCloversBlock extends PinkPetalsBlock { | ||
public GoldenCloversBlock(Properties properties) { | ||
super(properties); | ||
this.registerDefaultState(this.defaultBlockState().setValue(AetherBlockStateProperties.DOUBLE_DROPS, false)); | ||
} | ||
|
||
@Override | ||
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) { | ||
super.createBlockStateDefinition(builder); | ||
builder.add(AetherBlockStateProperties.DOUBLE_DROPS); | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
src/main/java/net/zepalesque/redux/blockset/flower/type/UntintedFlowerSet.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,26 @@ | ||
package net.zepalesque.redux.blockset.flower.type; | ||
|
||
import net.minecraft.world.level.block.Block; | ||
import net.zepalesque.redux.data.prov.ReduxBlockStateProvider; | ||
import net.zepalesque.redux.data.prov.ReduxItemModelProvider; | ||
import net.zepalesque.zenith.util.lambda.Consumers; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class UntintedFlowerSet<B extends Block> extends BaseFlowerSet<B>{ | ||
public UntintedFlowerSet(String id, String textureFolder, Supplier<B> constructor) { | ||
super(id, textureFolder, constructor); | ||
} | ||
|
||
@Override | ||
public void blockData(ReduxBlockStateProvider data) { | ||
data.crossBlock(this.flower().get(), this.textureFolder); | ||
Consumers.C3<Block, Block, String> pot = this.usePottedPrefix ? data::potAlt : data::pottedPlant; | ||
pot.accept(this.pot().get(), this.flower().get(), this.textureFolder); | ||
} | ||
|
||
@Override | ||
public void itemData(ReduxItemModelProvider data) { | ||
data.itemBlockFlat(this.flower().get(), this.textureFolder); | ||
} | ||
} |
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
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
Oops, something went wrong.