Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/main/java/com/fureniku/roads/blockentities/CrusherBlockEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/fureniku/roads/blockentities/RoadMachineBlockEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.fureniku.roads.blockentities; | ||
|
||
import com.fureniku.metropolis.blockentity.MetroBlockEntity; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.level.block.entity.BlockEntityType; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
|
||
public abstract class RoadMachineBlockEntity extends MetroBlockEntity { | ||
|
||
public RoadMachineBlockEntity(BlockEntityType<?> type, BlockPos pos, BlockState state) { | ||
super(type, pos, state); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/com/fureniku/roads/blockentities/menus/CrusherMenu.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.fureniku.roads.blockentities.menus; | ||
|
||
import com.fureniku.metropolis.menus.MetroMenu; | ||
import net.minecraft.world.entity.player.Inventory; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.inventory.ContainerLevelAccess; | ||
import net.minecraft.world.inventory.MenuType; | ||
import net.minecraft.world.item.ItemStack; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public class CrusherMenu extends MetroMenu { | ||
|
||
//client constructor | ||
public CrusherMenu(@Nullable MenuType<?> menuType, int containerId) { | ||
super(menuType, containerId); | ||
} | ||
|
||
//server constructor | ||
/* public CrusherMenu(int containerId, Inventory playerInv, ContainerLevelAccess access) { | ||
super(MenuType.) | ||
}*/ | ||
|
||
@Override | ||
public ItemStack quickMoveStack(Player player, int p_38942_) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean stillValid(Player player) { | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters