Skip to content

Commit

Permalink
Cactus Blocks and Items
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmehdiyev committed Nov 22, 2024
1 parent 99f28f8 commit 8d50814
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package net.rafael.usefulcactus.block.custom;

public class StrippedCactusBlock {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package net.rafael.usefulcactus.item.custom;

public class CactusSkinItem {
}
15 changes: 15 additions & 0 deletions src/main/java/net/rafael/usefulcactus/mixin/CactusBlockMixin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package net.rafael.usefulcactus.mixin;

import net.minecraft.server.MinecraftServer;
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;

@Mixin(MinecraftServer.class)
public class ExampleMixin {
@Inject(at = @At("HEAD"), method = "loadWorld")
private void init(CallbackInfo info) {
// This code is injected into the start of MinecraftServer.loadWorld()V
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8d50814

Please sign in to comment.