mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-29 18:28:34 +01:00
Compare commits
3 commits
750d2649c8
...
6263e819ab
Author | SHA1 | Date | |
---|---|---|---|
|
6263e819ab | ||
|
a03036e9db | ||
|
8dd0e1a951 |
5 changed files with 10 additions and 10 deletions
|
@ -16,6 +16,7 @@ import de.ellpeck.actuallyadditions.mod.material.ArmorMaterials;
|
|||
import de.ellpeck.actuallyadditions.mod.proxy.ClientProxy;
|
||||
import de.ellpeck.actuallyadditions.mod.util.StackUtil;
|
||||
import io.netty.util.internal.ConcurrentSet;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.inventory.EquipmentSlotType;
|
||||
|
@ -40,7 +41,7 @@ public class ItemEngineerGoggles extends ItemArmorAA implements IGoggles {
|
|||
super(ArmorMaterials.GOGGLES, EquipmentSlotType.HEAD, ActuallyItems.defaultProps().setNoRepair().durability(0));
|
||||
this.displayMobs = displayMobs;
|
||||
|
||||
//MinecraftForge.EVENT_BUS.register(this);
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
}
|
||||
|
||||
public static boolean isWearing(PlayerEntity player) {
|
||||
|
@ -51,7 +52,7 @@ public class ItemEngineerGoggles extends ItemArmorAA implements IGoggles {
|
|||
@OnlyIn(Dist.CLIENT)
|
||||
@SubscribeEvent
|
||||
public void onClientTick(TickEvent.ClientTickEvent event) {
|
||||
/* PlayerEntity player = ClientProxy.getCurrentPlayer();
|
||||
PlayerEntity player = Minecraft.getInstance().player;
|
||||
if (player != null && isWearing(player)) {
|
||||
ItemStack face = player.inventory.armor.get(3);
|
||||
if (((IGoggles) face.getItem()).displaySpectralMobs()) {
|
||||
|
@ -85,7 +86,7 @@ public class ItemEngineerGoggles extends ItemArmorAA implements IGoggles {
|
|||
}
|
||||
}
|
||||
this.cachedGlowingEntities.clear();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -69,7 +69,7 @@ public class ItemLeafBlower extends ItemBase implements IDisplayStandItem {
|
|||
//Breaks the Blocks
|
||||
boolean broke = this.breakStuff(world, x, y, z);
|
||||
//Plays a Minecart sounds (It really sounds like a Leaf Blower!)
|
||||
world.playSound(null, x, y, z, SoundEvents.MINECART_RIDING, SoundCategory.PLAYERS, 0.3F, 0.001F);
|
||||
world.playSound(null, x, y, z, SoundEvents.MINECART_RIDING, SoundCategory.PLAYERS, 0.2F, 0.001F);
|
||||
return broke;
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ public class ItemLeafBlower extends ItemBase implements IDisplayStandItem {
|
|||
BlockPos pos = new BlockPos(x + reachX, y + reachY, z + reachZ);
|
||||
Block block = world.getBlockState(pos).getBlock();
|
||||
|
||||
if ((block instanceof BushBlock || block instanceof IForgeShearable) && (this.isAdvanced || block instanceof LeavesBlock)) {
|
||||
if ((block instanceof BushBlock || block instanceof IForgeShearable) && (this.isAdvanced || !(block instanceof LeavesBlock))) {
|
||||
breakPositions.add(pos);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -322,9 +322,8 @@
|
|||
"item.actuallyadditions.ring": "Ring (wip)",
|
||||
"item.actuallyadditions.ring.storage": "Blaze Stored (wip)",
|
||||
"item.actuallyadditions.teleport_staff": "Teleport Staff",
|
||||
"item.actuallyadditions.hairy_ball": "Ball of Fur (wip)",
|
||||
"item.actuallyadditions.leaf_blower": "Leaf Blower (wip)",
|
||||
"item.actuallyadditions.advanced_leaf_blower": "Advanced Leaf Blower (wip)",
|
||||
"item.actuallyadditions.leaf_blower": "Leaf Blower",
|
||||
"item.actuallyadditions.advanced_leaf_blower": "Advanced Leaf Blower",
|
||||
"item.actuallyadditions.crafter_on_a_stick": "Crafting Table On A Stick",
|
||||
"item.actuallyadditions.basic_coil": "Basic Coil (wip)",
|
||||
"item.actuallyadditions.advanced_coil": "Advanced Coil (wip)",
|
||||
|
@ -388,8 +387,8 @@
|
|||
"item.actuallyadditions.lens_of_the_killer": "Lens of the Killer (wip)",
|
||||
"item.actuallyadditions.handheld_filler": "Handheld Filler (wip)",
|
||||
"item.actuallyadditions.laser_upgrade_invisibility": "Laser Relay Modifier: Invisibility (wip)",
|
||||
"item.actuallyadditions.engineers_goggles": "Engineer's Goggles (wip)",
|
||||
"item.actuallyadditions.engineers_goggles_advanced": "Engineer's Infrared Goggles (wip)",
|
||||
"item.actuallyadditions.engineers_goggles": "Engineer's Goggles",
|
||||
"item.actuallyadditions.engineers_goggles_advanced": "Engineer's Infrared Goggles",
|
||||
"item.actuallyadditions.laser_upgrade_range": "Laser Relay Modifier: Range (wip)",
|
||||
"item.actuallyadditions.restonia_crystal_shard": "Red Crystal Shard (wip)",
|
||||
"item.actuallyadditions.palis_crystal_shard": "Blue Crystal Shard (wip)",
|
||||
|
|
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Loading…
Reference in a new issue