Skip to content

Commit

Permalink
Add Nonnull annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Intybyte committed Sep 8, 2024
1 parent dcb9802 commit 492244c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private BlockBreakHandler onBreak() {
return new SimpleBlockBreakHandler() {

@Override
public void onBlockBreak(Block b) {
public void onBlockBreak(@Nonnull Block b) {
BlockMenu inv = BlockStorage.getInventory(b);

if (inv != null) {
Expand Down Expand Up @@ -112,7 +112,7 @@ public int[] getOutputSlots() {
}

@Override
public EnergyNetComponentType getEnergyComponentType() {
public @Nonnull EnergyNetComponentType getEnergyComponentType() {
return EnergyNetComponentType.CONSUMER;
}

Expand Down Expand Up @@ -255,7 +255,7 @@ private boolean isSource(@Nonnull Block block) {
}

@Override
public BlockTicker getItemHandler() {
public @Nonnull BlockTicker getItemHandler() {
return new BlockTicker() {

@Override
Expand Down

0 comments on commit 492244c

Please sign in to comment.