-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use API from AdditionalPlacements to implement compat
- Loading branch information
Showing
10 changed files
with
48 additions
and
89 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
16 changes: 16 additions & 0 deletions
16
common/src/main/java/com/copycatsplus/copycats/compat/AdditionalPlacementsCompat.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,16 @@ | ||
package com.copycatsplus.copycats.compat; | ||
|
||
import com.copycatsplus.copycats.foundation.copycat.ICopycatBlock; | ||
import com.firemerald.additionalplacements.generation.IBlockBlacklister; | ||
import com.firemerald.additionalplacements.generation.RegistrationInitializer; | ||
import net.minecraft.world.level.block.Block; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public class AdditionalPlacementsCompat implements RegistrationInitializer { | ||
|
||
@Override | ||
public void addGlobalBlacklisters(Consumer<IBlockBlacklister<Block>> register) { | ||
register.accept((t, rl) -> t instanceof ICopycatBlock); | ||
} | ||
} |
35 changes: 0 additions & 35 deletions
35
...n/java/com/copycatsplus/copycats/mixin/compat/additionalplacements/ConfigCommonMixin.java
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
...java/com/copycatsplus/copycats/mixin/compat/additionalplacements/PlacementBlockMixin.java
This file was deleted.
Oops, something went wrong.
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
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
10 changes: 10 additions & 0 deletions
10
...src/main/java/com/copycatsplus/copycats/compat/forge/AdditionalPlacementsCompatForge.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,10 @@ | ||
package com.copycatsplus.copycats.compat.forge; | ||
|
||
import com.copycatsplus.copycats.compat.AdditionalPlacementsCompat; | ||
import com.firemerald.additionalplacements.generation.Registration; | ||
|
||
public class AdditionalPlacementsCompatForge { | ||
public static void register() { | ||
Registration.addRegistration(new AdditionalPlacementsCompat()); | ||
} | ||
} |
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