Package net.minecraft.potion
Class PotionHealth
- java.lang.Object
-
- net.minecraft.potion.Potion
-
- net.minecraft.potion.PotionHealth
-
public class PotionHealth extends Potion
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
-
Fields inherited from class net.minecraft.potion.Potion
absorption, blindness, confusion, damageBoost, digSlowdown, digSpeed, field_180143_D, field_180144_E, field_180145_F, field_180146_G, field_180147_A, field_180148_B, field_180149_C, field_180151_b, field_180153_z, fireResistance, harm, heal, healthBoost, hunger, id, invisibility, jump, moveSlowdown, moveSpeed, nightVision, poison, potionTypes, regeneration, resistance, saturation, waterBreathing, weakness, wither
-
-
Constructor Summary
Constructors Constructor Description PotionHealth(int potionID, ResourceLocation location, boolean badEffect, int potionColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInstant()
+ Returns true if the potion has an instant effect instead of a continuous one (eg Harming)boolean
isReady(int parInt1, int parInt2)
+ checks if Potion effect is ready to be applied this tick.-
Methods inherited from class net.minecraft.potion.Potion
affectEntity, applyAttributesModifiersToEntity, func_181168_c, getAttributeModifierAmount, getAttributeModifierMap, getDurationString, getEffectiveness, getId, getLiquidColor, getName, getPotionFromResourceLocation, getStatusIconIndex, hasStatusIcon, isBadEffect, isUsable, performEffect, registerPotionAttributeModifier, removeAttributesModifiersFromEntity, setEffectiveness, setIconIndex, setPotionName
-
-
-
-
Constructor Detail
-
PotionHealth
public PotionHealth(int potionID, ResourceLocation location, boolean badEffect, int potionColor)
-
-