Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
41 changes: 0 additions & 41 deletions package-lock.json
Comment thread
Wind292 marked this conversation as resolved.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ public static void registerModEnchantmentEffects() {
ExampleMod.LOGGER.info("Registering EnchantmentEffects for" + ExampleMod.MOD_ID);
}
}
//#entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ public MapCodec<? extends EnchantmentEntityEffect> codec() {
return CODEC;
}
}
//#entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ public static void initialize() {
// :::_11
// :::3
}

// :::3
// :::1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public InteractionResult use(Level level, Player user, InteractionHand hand) {

return InteractionResult.SUCCESS;
}

//::2

@Override
Expand All @@ -50,7 +49,6 @@ public void appendHoverText(ItemStack stack, TooltipContext context, TooltipDisp
textConsumer.accept(Component.translatable("item.example-mod.counter.info", count).withStyle(ChatFormatting.GOLD));
}
}

//::3

//::1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@ public InteractionResult use(Level level, Player user, InteractionHand hand) {

return InteractionResult.SUCCESS;
}

// :::2

// :::3
@Override
public void appendHoverText(ItemStack stack, TooltipContext context, TooltipDisplay displayComponent, Consumer<Component> textConsumer, TooltipFlag type) {
textConsumer.accept(Component.translatable("itemTooltip.example-mod.lightning_stick").withStyle(ChatFormatting.GOLD));
}

// :::3
// :::1
}
Expand Down
Loading