Class ForgeHooksHelper

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

public class ForgeHooksHelper extends Object implements net.createmod.catnip.platform.services.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.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
     
    net.minecraft.nbt.CompoundTag
    getExtraEntityData(net.minecraft.world.entity.Entity entity)
     
    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)
     

    Methods inherited from class java.lang.Object

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

    • ForgeHooksHelper

      public ForgeHooksHelper()
  • 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)
      Specified by:
      playerPlaceSingleBlock in interface net.createmod.catnip.platform.services.ModHooksHelper
    • 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.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player)
      Specified by:
      getCloneItemFromBlockstate in interface net.createmod.catnip.platform.services.ModHooksHelper
    • isPlayerFake

      public boolean isPlayerFake(net.minecraft.server.level.ServerPlayer player)
      Specified by:
      isPlayerFake in interface net.createmod.catnip.platform.services.ModHooksHelper
    • getExtraEntityData

      public net.minecraft.nbt.CompoundTag getExtraEntityData(net.minecraft.world.entity.Entity entity)
      Specified by:
      getExtraEntityData in interface net.createmod.catnip.platform.services.ModHooksHelper