Class FabricHooksHelper

java.lang.Object
net.createmod.catnip.platform.FabricHooksHelper
All Implemented Interfaces:
ModHooksHelper

public class FabricHooksHelper extends Object implements ModHooksHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    getCloneItemFromBlockstate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     
    boolean
    isPlayerFake(net.minecraft.server.level.ServerPlayer player)
     
    boolean
    playerPlaceSingleBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState)
    Attempts to place a single Block as a Player, and should fire according events

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FabricHooksHelper

      public FabricHooksHelper()
  • Method Details

    • playerPlaceSingleBlock

      public boolean playerPlaceSingleBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState newState)
      Description copied from interface: ModHooksHelper
      Attempts to place a single Block as a Player, and should fire according events
      Specified by:
      playerPlaceSingleBlock in interface ModHooksHelper
      Returns:
      True if the event got canceled or the Block was not be placed, False otherwise
    • getCloneItemFromBlockstate

      public net.minecraft.world.item.ItemStack getCloneItemFromBlockstate(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.HitResult target, net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
      Specified by:
      getCloneItemFromBlockstate in interface ModHooksHelper
    • isPlayerFake

      public boolean isPlayerFake(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      isPlayerFake in interface ModHooksHelper