Skip to content

Commit

Permalink
remove the master block right click message
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Sep 14, 2021
1 parent 72c2014 commit 91c7299
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
29 changes: 0 additions & 29 deletions src/main/kotlin/badasintended/slotlink/block/MasterBlock.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ import net.minecraft.block.entity.BlockEntity
import net.minecraft.block.entity.BlockEntityTicker
import net.minecraft.block.entity.BlockEntityType
import net.minecraft.entity.LivingEntity
import net.minecraft.entity.player.PlayerEntity
import net.minecraft.item.ItemStack
import net.minecraft.nbt.NbtCompound
import net.minecraft.nbt.NbtList
import net.minecraft.util.ActionResult
import net.minecraft.util.Hand
import net.minecraft.util.hit.BlockHitResult
import net.minecraft.util.math.BlockPos
import net.minecraft.world.World
import net.minecraft.world.WorldAccess
Expand Down Expand Up @@ -66,31 +62,6 @@ class MasterBlock : ModBlock("master") {
}
}

override fun onUse(
state: BlockState,
world: World,
pos: BlockPos,
player: PlayerEntity,
hand: Hand,
hit: BlockHitResult
): ActionResult {
// if (!world.isClient) {
// val blockEntity = world.getBlockEntity(pos)!! as MasterBlockEntity
// val inventories = blockEntity.getStorages(world, true)
//
// player.chat("")
// player.chat("$translationKey.use1", pos.x, pos.y, pos.z)
// player.chat("$translationKey.use2", inventories.size)
// player.chat(
// "$translationKey.use3",
// inventories.sumOf { it.size() },
// inventories.sumOf { inv -> (0 until inv.size()).filter { inv.getStack(it).isEmpty }.size }
// )
// player.chat("$translationKey.use4", inventories.sumOf { it.size() * it.maxCountPerStack })
// }
return ActionResult.SUCCESS
}

override fun onBroken(world: WorldAccess, pos: BlockPos, state: BlockState) {
super.onBroken(world, pos, state)

Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/assets/slotlink/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"itemGroup.slotlink.group" : "slotlink",
"block.slotlink.master" : "Network Master",
"block.slotlink.master.tooltip" : "Heart of the storage connection. §5One per connection",
"block.slotlink.master.use1" : "Network (%d, %d, %d):",
"block.slotlink.master.use2" : "- Linked storage: %d",
"block.slotlink.master.use3" : "- Total slot: %d (%d empty)",
"block.slotlink.master.use4" : "- Maximum item possible: %d",
"block.slotlink.child.tooltip" : "Needs to be connected to master block to work",
"block.slotlink.request" : "Storage Request",
"block.slotlink.request.hasNoMaster" : "You need to connect it to a master block",
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/assets/slotlink/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"itemGroup.slotlink.group" : "存储链接",
"block.slotlink.master" : "网络主机",
"block.slotlink.master.tooltip" : "存储链接的核心。§5每个存储网络都需要一个。",
"block.slotlink.master.use1" : "网络(%d, %d, %d):",
"block.slotlink.master.use2" : "- 已链接的库存:%d",
"block.slotlink.master.use3" : "- 总槽位数:%d (%d empty)",
"block.slotlink.master.use4" : "- 最大可存储数量:%d",
"block.slotlink.child.tooltip" : "需要链接到主方块以开始工作",
"block.slotlink.request" : "存储请求器",
"block.slotlink.request.hasNoMaster" : "你需要将它与一个网络主机相链接。",
Expand Down

0 comments on commit 91c7299

Please sign in to comment.