-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaefefd
commit a7b2700
Showing
4 changed files
with
145 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
src/main/java/com/mmodding/mmodding_lib/mixin/accessors/AbstractBlockSettingsAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
package com.mmodding.mmodding_lib.mixin.accessors; | ||
|
||
import net.minecraft.block.AbstractBlock; | ||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.MapColor; | ||
import net.minecraft.block.Material; | ||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.sound.BlockSoundGroup; | ||
import net.minecraft.util.Identifier; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
import java.util.function.Function; | ||
import java.util.function.ToIntFunction; | ||
|
||
@Mixin(AbstractBlock.Settings.class) | ||
public interface AbstractBlockSettingsAccessor { | ||
|
||
@Accessor | ||
Material getMaterial(); | ||
|
||
@Accessor | ||
float getHardness(); | ||
|
||
@Accessor | ||
float getResistance(); | ||
|
||
@Accessor | ||
boolean getCollidable(); | ||
|
||
@Accessor | ||
boolean getRandomTicks(); | ||
|
||
@Accessor("luminance") | ||
ToIntFunction<BlockState> getLuminance(); | ||
|
||
@Accessor | ||
Function<BlockState, MapColor> getMapColorProvider(); | ||
|
||
@Accessor | ||
BlockSoundGroup getSoundGroup(); | ||
|
||
@Accessor | ||
float getSlipperiness(); | ||
|
||
@Accessor | ||
float getVelocityMultiplier(); | ||
|
||
@Accessor | ||
float getJumpVelocityMultiplier(); | ||
|
||
@Accessor | ||
Identifier getLootTableId(); | ||
|
||
@Accessor | ||
boolean getOpaque(); | ||
|
||
@Accessor | ||
boolean getIsAir(); | ||
|
||
@Accessor | ||
boolean isToolRequired(); | ||
|
||
@Accessor | ||
AbstractBlock.TypedContextPredicate<EntityType<?>> getAllowsSpawningPredicate(); | ||
|
||
@Accessor | ||
AbstractBlock.ContextPredicate getSolidBlockPredicate(); | ||
|
||
@Accessor | ||
AbstractBlock.ContextPredicate getSuffocationPredicate(); | ||
|
||
@Accessor | ||
AbstractBlock.ContextPredicate getBlockVisionPredicate(); | ||
|
||
@Accessor | ||
AbstractBlock.ContextPredicate getPostProcessPredicate(); | ||
|
||
@Accessor | ||
AbstractBlock.ContextPredicate getEmissiveLightingPredicate(); | ||
|
||
@Accessor | ||
boolean getDynamicBounds(); | ||
|
||
@Accessor | ||
void setMaterial(Material material); | ||
|
||
@Accessor | ||
void setCollidable(boolean collidable); | ||
|
||
@Accessor | ||
void setRandomTicks(boolean ticksRandomly); | ||
|
||
@Accessor | ||
void setMapColorProvider(Function<BlockState, MapColor> mapColorProvider); | ||
|
||
@Accessor | ||
void setLootTableId(Identifier lootTableId); | ||
|
||
@Accessor | ||
void setOpaque(boolean opaque); | ||
|
||
@Accessor | ||
void setIsAir(boolean isAir); | ||
|
||
@Accessor | ||
void setToolRequired(boolean toolRequired); | ||
|
||
@Accessor | ||
void setDynamicBounds(boolean dynamicBounds); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters