Skip to content

Commit

Permalink
the tag system.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Mar 10, 2024
1 parent b02cf42 commit cd6a6f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class BeehiveBlockInformationData extends AbstractBlockInformationData {
@Override
public Optional<MutableText> blockInformation(BlockRepresentable representable) {
representable.blockEntity().flatMap(blockEntity -> {
return representable.blockEntity().flatMap(blockEntity -> {
if (blockEntity instanceof BeehiveBlockEntity) {
NbtCompound data = representable.data();
System.out.println(data);
Expand Down Expand Up @@ -53,8 +53,6 @@ public Optional<MutableText> blockInformation(BlockRepresentable representable)

return Optional.empty();
});

return Optional.empty();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public boolean shouldApply(Block block) {

@Override
public void append(NbtCompound data, BlockRepresentable representable) {
System.out.println(1);
representable.blockEntity().ifPresent(blockEntity -> {
if (blockEntity instanceof BeehiveBlockEntity beehiveBlockEntity) {
data.putByte("Bees", (byte) beehiveBlockEntity.getBeeCount());
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
],
"knowledges:data": [
"net.krlite.knowledges.impl.entrypoint.KnowledgesDataProvider"
],
"knowledges:tags": [
"net.krlite.knowledges.impl.entrypoint.KnowledgesTagProvider"
]
},
"mixins": [
Expand Down

0 comments on commit cd6a6f5

Please sign in to comment.