dev.creoii.creoapi.mixin.block.AbstractBlockMixin Maven / Gradle / Ivy
package dev.creoii.creoapi.mixin.block;
import dev.creoii.creoapi.impl.block.SpreadableImpl;
import net.minecraft.class_2338;
import net.minecraft.class_2680;
import net.minecraft.class_3218;
import net.minecraft.class_4970;
import net.minecraft.class_5819;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(class_4970.class)
public class AbstractBlockMixin {
@Inject(method = "randomTick", at = @At("HEAD"), cancellable = true)
private void creo$applySpreadables(class_2680 state, class_3218 world, class_2338 pos, class_5819 random, CallbackInfo ci) {
SpreadableImpl.applySpreadables(state, world, pos, random, ci);
}
}