Skip to content

Commit

Permalink
Fix issues setting block properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Jan 30, 2022
1 parent a711693 commit a484e2e
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.material.Material;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.gen.Accessor;

@Mixin(BlockBehaviour.class)
Expand All @@ -11,36 +12,42 @@ public interface AccessBlockBehaviour {
@Accessor("friction")
float getFriction();

@Mutable
@Accessor("friction")
void setFriction(float value);

@Accessor("speedFactor")
float getSpeedFactor();

@Mutable
@Accessor("speedFactor")
void setSpeedFactor(float value);

@Accessor("jumpFactor")
float getJumpFactor();

@Mutable
@Accessor("jumpFactor")
void setJumpFactor(float value);

@Accessor("hasCollision")
boolean getHasCollision();

@Mutable
@Accessor("hasCollision")
void setHasCollision(boolean value);

@Accessor("explosionResistance")
float getExplosionResistance();

@Mutable
@Accessor("explosionResistance")
void setExplosionResistance(float value);

@Accessor("material")
Material getMaterial();

@Mutable
@Accessor("material")
void setMaterial(Material value);

Expand Down

0 comments on commit a484e2e

Please sign in to comment.