Skip to content

Commit

Permalink
Remove an unnecessary non-API use
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Apr 30, 2024
1 parent f3d1761 commit 159a3a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/gripe/_90/appliede/AppliedE.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import appeng.api.parts.IPartItem;
import appeng.api.parts.PartModels;
import appeng.api.stacks.AEKeyTypes;
import appeng.blockentity.AEBaseBlockEntity;
import appeng.core.AppEng;
import appeng.core.definitions.AEBlocks;
import appeng.core.definitions.AEItems;
Expand Down Expand Up @@ -83,7 +82,6 @@ public final class AppliedE {
public static final RegistryObject<BlockEntityType<EMCInterfaceBlockEntity>> EMC_INTERFACE_BE = BE_TYPES.register("emc_interface", () -> {
var type = BlockEntityType.Builder.of(EMCInterfaceBlockEntity::new, EMC_INTERFACE.get()).build(null);
EMC_INTERFACE.get().setBlockEntity(EMCInterfaceBlockEntity.class, type, null, null);
AEBaseBlockEntity.registerBlockEntityItem(type, EMC_INTERFACE.get().asItem());
return type;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.state.BlockState;
Expand Down Expand Up @@ -73,6 +74,11 @@ public void clearContent() {
getStorage().clear();
}

@Override
protected Item getItemFromBlockEntity() {
return AppliedE.EMC_INTERFACE.get().asItem();
}

@Override
public ItemStack getMainMenuIcon() {
return AppliedE.EMC_INTERFACE.get().asItem().getDefaultInstance();
Expand Down

0 comments on commit 159a3a0

Please sign in to comment.