-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
a3dd303
commit 1c14c2c
Showing
4 changed files
with
32 additions
and
6 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
24 changes: 24 additions & 0 deletions
24
common/src/main/java/com/unlikepaladin/pfm/mixin/PFMPointOfInterestTypeAccessor.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,24 @@ | ||
package com.unlikepaladin.pfm.mixin; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.world.poi.PointOfInterestType; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Mutable; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
@Mixin(PointOfInterestType.class) | ||
public interface PFMPointOfInterestTypeAccessor { | ||
@Accessor("BLOCK_STATE_TO_POINT_OF_INTEREST_TYPE") | ||
static Map<BlockState, PointOfInterestType> getBlockStateToPointOfInterestType() { | ||
throw new AssertionError(); | ||
} | ||
|
||
@Mutable | ||
@Accessor("REGISTERED_STATES") | ||
static void setRegisteredStates(Set<BlockState> states) { | ||
throw new AssertionError(); | ||
} | ||
} |
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