Skip to content
Merged

Dev #26

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.75
mod_id=cakesticklib
mod_name=CakeStickLib
mod_license=Ora Et Labora License
mod_version=1.14
mod_version=1.14-hotfix1
mod_group_id=com.devdyna.cakestick
mod_authors=DevDyna
mod_description=A standalone port of Synergy API to unify most of the code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
public interface BlockItemKeeper {

abstract List<ItemStack> getDrops(BlockState state, Builder builder);

abstract void setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity entity,
ItemStack stack);

Expand All @@ -41,7 +42,7 @@ default List<ItemStack> getResultDrops(List<ItemStack> l, ItemLike i, BlockState
return drops;
}

default void placeBlockAndItems(Level level, BlockPos pos, BlockState state, LivingEntity entity,
default void addItemsToBlockPlaced(Level level, BlockPos pos, BlockState state, LivingEntity entity,
ItemStack stack) {

if (level.isClientSide())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.neoforge.event.entity.player.ItemTooltipEvent;
import com.devdyna.cakesticklib.setup.registry.LibComponents;

//TODO IMP : update
public class ItemToolTipped {

Expand Down Expand Up @@ -88,16 +89,12 @@ public static void main(ItemTooltipEvent event) {
tip.add(ToolTipHelper.INDEX, Component.translatable(MODULE_ID + ".honey_solution.tip"));

if (item.getItem() instanceof BlockItem bi && bi.getBlock() instanceof BlockItemKeeper)
tip.add(ToolTipHelper.INDEX, Component.translatable(MODULE_ID + ".keep.storage"));
if (item.has(LibComponents.ITEM_CONTAINER))
if (item.get(LibComponents.ITEM_CONTAINER) != null)
ToolTipHelper.add(tip, MODULE_ID + ".keep.storage");

if (item.getItem() instanceof SpectralArrowItem)
tip.add(ToolTipHelper.INDEX, Component.translatable("extra.effect.minecraft.glowing"));


if (item.has(LibComponents.ITEM_CONTAINER))
if (item.get(LibComponents.ITEM_CONTAINER) != null)
ToolTipHelper. add(tip, MODULE_ID + ".keep.storage");


}
}
Loading