Skip to content

Commit

Permalink
Add can break/place to copied/hidden conponents
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Apr 19, 2024
1 parent 1849772 commit b8d6ee9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public final class PolymerItemUtils {
DataComponentTypes.BANNER_PATTERNS,
DataComponentTypes.BASE_COLOR,
DataComponentTypes.HIDE_TOOLTIP,
DataComponentTypes.CAN_BREAK,
DataComponentTypes.CAN_PLACE_ON,
DataComponentTypes.REPAIR_COST,
DataComponentTypes.BUNDLE_CONTENTS,
DataComponentTypes.RARITY,
Expand All @@ -78,7 +80,9 @@ public final class PolymerItemUtils {
HideableTooltip.of(DataComponentTypes.TRIM, ArmorTrim::withShowInTooltip),
HideableTooltip.ofNeg(DataComponentTypes.ENCHANTMENTS, ItemEnchantmentsComponent::isEmpty, ItemEnchantmentsComponent::withShowInTooltip),
HideableTooltip.ofNeg(DataComponentTypes.STORED_ENCHANTMENTS, ItemEnchantmentsComponent::isEmpty, ItemEnchantmentsComponent::withShowInTooltip),
HideableTooltip.of(DataComponentTypes.UNBREAKABLE, UnbreakableComponent::withShowInTooltip)
HideableTooltip.of(DataComponentTypes.UNBREAKABLE, UnbreakableComponent::withShowInTooltip),
HideableTooltip.of(DataComponentTypes.CAN_BREAK, BlockPredicatesChecker::withShowInTooltip),
HideableTooltip.of(DataComponentTypes.CAN_PLACE_ON, BlockPredicatesChecker::withShowInTooltip)
);

private static final Set<DataComponentType<?>> UNSYNCED_COMPONENTS = new ObjectOpenCustomHashSet<>(CommonImplUtils.IDENTITY_HASH);
Expand Down

0 comments on commit b8d6ee9

Please sign in to comment.