Skip to content

Commit

Permalink
Remove Super Calls in Fabric Block mixins
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Dec 2, 2024
1 parent a4efaa6 commit 77005b1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.AttachedStemBlock;
import net.minecraft.world.level.block.BushBlock;
import net.minecraft.world.level.block.FarmBlock;
import net.minecraft.world.level.block.state.BlockState;
import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -12,11 +11,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(AttachedStemBlock.class)
public abstract class AttachedStemBlockMixin extends BushBlock {
protected AttachedStemBlockMixin(Properties properties) {
super(properties);
}

public abstract class AttachedStemBlockMixin {
/**
* @reason Allows crops to be placed on Blocks that extend FarmBlock
* @author Joseph T. McQuigg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(CropBlock.class)
public abstract class CropBlockMixin extends BushBlock implements BonemealableBlock {
public CropBlockMixin(Properties properties) {
super(properties);
}

public abstract class CropBlockMixin {
/**
* @reason Allows crops to be placed on Blocks that extend FarmBlock
* @author Joseph T. McQuigg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import net.minecraft.core.BlockPos;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.BonemealableBlock;
import net.minecraft.world.level.block.DoublePlantBlock;
import net.minecraft.world.level.block.FarmBlock;
import net.minecraft.world.level.block.PitcherCropBlock;
import net.minecraft.world.level.block.state.BlockState;
Expand All @@ -13,11 +11,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(PitcherCropBlock.class)
public abstract class PitcherCropBlockMixin extends DoublePlantBlock implements BonemealableBlock {
public PitcherCropBlockMixin(Properties properties) {
super(properties);
}

public abstract class PitcherCropBlockMixin {
/**
* @reason Allows crops to be placed on Blocks that extend FarmBlock
* @author Joseph T. McQuigg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import net.minecraft.server.level.ServerLevel;
import net.minecraft.util.RandomSource;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.BonemealableBlock;
import net.minecraft.world.level.block.GrassBlock;
import net.minecraft.world.level.block.SpreadingSnowyDirtBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.potionstudios.biomeswevegone.util.BoneMealHandler;
import net.potionstudios.biomeswevegone.world.level.block.BWGBlocks;
Expand All @@ -19,12 +17,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(GrassBlock.class)
public abstract class PrairieGrassMixin extends SpreadingSnowyDirtBlock implements BonemealableBlock {

protected PrairieGrassMixin(Properties properties) {
super(properties);
}

public abstract class PrairieGrassMixin {
/**
* @reason Allows for Bonemealing of Prairie Grass to spawn Prairie Grass and other features.
* @see GrassBlock#performBonemeal(ServerLevel, RandomSource, BlockPos, BlockState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import net.minecraft.core.BlockPos;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.BonemealableBlock;
import net.minecraft.world.level.block.BushBlock;
import net.minecraft.world.level.block.FarmBlock;
import net.minecraft.world.level.block.StemBlock;
import net.minecraft.world.level.block.state.BlockState;
Expand All @@ -13,11 +11,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(StemBlock.class)
public abstract class StemBlockMixin extends BushBlock implements BonemealableBlock {
protected StemBlockMixin(Properties properties) {
super(properties);
}

public abstract class StemBlockMixin {
/**
* @reason Allows crops to be placed on Blocks that extend FarmBlock
* @author Joseph T. McQuigg
Expand Down

0 comments on commit 77005b1

Please sign in to comment.