Class InjectSetBlockAndUpdate

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
etithespirit.mixin.mixins.InjectSetBlockAndUpdate
All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.Level>

public abstract class InjectSetBlockAndUpdate extends net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.Level>
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract net.minecraft.world.level.block.state.BlockState
    getBlockState(net.minecraft.core.BlockPos at)
     
    abstract boolean
    setBlock(net.minecraft.core.BlockPos at, net.minecraft.world.level.block.state.BlockState newState, int flags, int recursion)
     
    void
    setBlock$notifyAfter(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pNewState, int pFlags, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    Intercepts calls to setBlock in worlds and allows objects to react to the change after it occurs.
    void
    setBlock$notifyBefore(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pNewState, int pFlags, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
    Intercepts calls to setBlock in worlds and allows objects to react to the change before it occurs.

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability
  • Method Details

    • getBlockState

      public abstract net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.core.BlockPos at)
    • setBlock

      public abstract boolean setBlock(net.minecraft.core.BlockPos at, net.minecraft.world.level.block.state.BlockState newState, int flags, int recursion)
    • setBlock$notifyBefore

      public void setBlock$notifyBefore(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pNewState, int pFlags, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
      Intercepts calls to setBlock in worlds and allows objects to react to the change before it occurs. Does not allow canceling.
      This strictly executes if the flags are for a client replication and a block update (as well as any other flags on top of those two).
      Parameters:
      pPos - The position to update.
      pNewState - The replacement state.
      pFlags - The update flags. For more information on these, see Level.setBlock(BlockPos, BlockState, int).
      cir - Mixin callback info
    • setBlock$notifyAfter

      public void setBlock$notifyAfter(net.minecraft.core.BlockPos pPos, net.minecraft.world.level.block.state.BlockState pNewState, int pFlags, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<Boolean> cir)
      Intercepts calls to setBlock in worlds and allows objects to react to the change after it occurs. Does not allow canceling.
      This strictly executes if the flags are for a client replication and a block update (as well as any other flags on top of those two).
      Parameters:
      pPos - The position to update.
      pNewState - The replacement state.
      pFlags - The update flags. For more information on these, see Level.setBlock(BlockPos, BlockState, int).
      cir - Mixin callback info