generated from DragonsPlusMinecraft/CreateAddonTemplate
-
Notifications
You must be signed in to change notification settings - Fork 12
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
1f09c61
commit 70b8696
Showing
4 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...lus/dragons/createcentralkitchen/foundation/mixin/common/botarium/BotariumForgeMixin.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,21 @@ | ||
package plus.dragons.createcentralkitchen.foundation.mixin.common.botarium; | ||
|
||
import earth.terrarium.botarium.forge.BotariumForge; | ||
import net.minecraft.world.level.block.entity.BlockEntity; | ||
import net.minecraftforge.event.AttachCapabilitiesEvent; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
import plus.dragons.createcentralkitchen.api.block.entity.DelegatingSmartTileEntity; | ||
|
||
@Mixin(value = BotariumForge.class, remap = false) | ||
public class BotariumForgeMixin { | ||
@Inject(method = "attachBlockCapabilities", at = @At("HEAD"), cancellable = true) | ||
private static void injected(AttachCapabilitiesEvent<BlockEntity> event, CallbackInfo ci) { | ||
Object var2 = event.getObject(); | ||
if(var2 instanceof DelegatingSmartTileEntity){ | ||
ci.cancel(); | ||
} | ||
} | ||
} |
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