This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also updated antimatter
- Loading branch information
Showing
21 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
Submodule AntimatterAPI
updated
4 files
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
31 changes: 31 additions & 0 deletions
31
common/src/main/java/muramasa/gregtech/items/ItemSprayCan.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,31 @@ | ||
package muramasa.gregtech.items; | ||
|
||
import muramasa.antimatter.blockentity.pipe.BlockEntityPipe; | ||
import muramasa.antimatter.item.ItemBasic; | ||
import muramasa.antimatter.pipe.types.FluidPipe; | ||
import muramasa.antimatter.pipe.types.ItemPipe; | ||
import muramasa.gregtech.GTIRef; | ||
import net.minecraft.world.InteractionResult; | ||
import net.minecraft.world.item.DyeColor; | ||
import net.minecraft.world.item.context.UseOnContext; | ||
import net.minecraft.world.level.block.entity.BlockEntity; | ||
|
||
public class ItemSprayCan extends ItemBasic<ItemSprayCan> { | ||
private final DyeColor color; | ||
|
||
public ItemSprayCan(DyeColor color) { | ||
super(GTIRef.ID, color.getName() + "_spray_can", "spray_cans/"); | ||
this.color = color; | ||
} | ||
|
||
@Override | ||
public InteractionResult useOn(UseOnContext context) { | ||
BlockEntity be = context.getLevel().getBlockEntity(context.getClickedPos()); | ||
if (!context.getLevel().isClientSide() && be instanceof BlockEntityPipe<?> pipe && (pipe.getPipeType() instanceof FluidPipe || pipe.getPipeType() instanceof ItemPipe)){ | ||
pipe.setPipeColor(color.getTextColor()); | ||
pipe.sidedSync(true); | ||
return InteractionResult.SUCCESS; | ||
} | ||
return super.useOn(context); | ||
} | ||
} |
Binary file added
BIN
+441 Bytes
...rc/main/resources/assets/gti/textures/item/basic/spray_cans/black_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+443 Bytes
...src/main/resources/assets/gti/textures/item/basic/spray_cans/blue_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+447 Bytes
...rc/main/resources/assets/gti/textures/item/basic/spray_cans/brown_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+446 Bytes
...src/main/resources/assets/gti/textures/item/basic/spray_cans/cyan_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+408 Bytes
...c/main/resources/assets/gti/textures/item/basic/spray_cans/empty_spray_cans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+442 Bytes
...src/main/resources/assets/gti/textures/item/basic/spray_cans/gray_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+450 Bytes
...rc/main/resources/assets/gti/textures/item/basic/spray_cans/green_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+448 Bytes
...in/resources/assets/gti/textures/item/basic/spray_cans/light_blue_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+431 Bytes
...in/resources/assets/gti/textures/item/basic/spray_cans/light_gray_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+447 Bytes
...src/main/resources/assets/gti/textures/item/basic/spray_cans/lime_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+446 Bytes
.../main/resources/assets/gti/textures/item/basic/spray_cans/magenta_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+449 Bytes
...c/main/resources/assets/gti/textures/item/basic/spray_cans/orange_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+316 Bytes
...src/main/resources/assets/gti/textures/item/basic/spray_cans/pink_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+317 Bytes
...c/main/resources/assets/gti/textures/item/basic/spray_cans/purple_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+443 Bytes
.../src/main/resources/assets/gti/textures/item/basic/spray_cans/red_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+438 Bytes
...rc/main/resources/assets/gti/textures/item/basic/spray_cans/white_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+443 Bytes
...c/main/resources/assets/gti/textures/item/basic/spray_cans/yellow_spray_can.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.