Skip to content
Merged

Dev #35

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ neo_version=26.1.2.99
mod_id=cakesticklib
mod_name=CakeStickLib
mod_license=Ora Et Labora License
mod_version=1.17.4
mod_version=1.17.4-hotfix1
mod_group_id=com.devdyna.cakestick
mod_authors=DevDyna
mod_description=A standalone port of JustDynaThings and Synergy API to unify most of the code
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
"minecraft:stone_slab",
"minecraft:diorite_slab",
"minecraft:andesite_slab",
"minecraft:granite_slab"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;

import com.devdyna.cakesticklib.api.utils.ColorUtils;

Expand Down Expand Up @@ -31,12 +30,15 @@ public EffectItem(Properties p, List<MobEffectInstance> effects) {
public static class Builder {

private final List<FoodEffect> list = new ArrayList<>();
private Properties p = new Properties();
private final Properties p;
private FoodProperties food;

public Builder properties(Function<Properties, Properties> f) {
this.p = f.apply(p);
return this;
public Builder(Properties p){
this.p = p;
}

public static Builder of(Properties p){
return new Builder(p);
}

public Builder food(FoodProperties food) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ protected void addTags(Provider p) {

tag(LibTags.Items.MODERN_STONES).add(Items.DEEPSLATE, Items.TUFF);

tag(LibTags.Items.LEGACY_STONE_SLABS).add(Items.STONE_SLAB, Items.DIORITE_SLAB, Items.ANDESITE_SLAB,
Items.GRANITE_SLAB);

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public static void register(IEventBus bus) {

// stones pre-1.17 (overworld)
public static final TagKey<Item> LEGACY_STONES = RegistryUtils.tagItem(MODULE_ID, "legacy_stones");
public static final TagKey<Item> LEGACY_STONE_SLABS = RegistryUtils.tagItem(MODULE_ID, "legacy_stone_slabs");
// only stones post-1.17
public static final TagKey<Item> MODERN_STONES = RegistryUtils.tagItem(MODULE_ID, "modern_stones");

Expand Down
Loading