Record Class MekRadShieldProvider.PneumaticArmorRadiationShield
java.lang.Object
java.lang.Record
me.desht.pneumaticcraft.common.thirdparty.mekanism.MekRadShieldProvider.PneumaticArmorRadiationShield
- All Implemented Interfaces:
mekanism.api.radiation.capability.IRadiationShielding
- Enclosing class:
- MekRadShieldProvider
public static record MekRadShieldProvider.PneumaticArmorRadiationShield(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot)
extends Record
implements mekanism.api.radiation.capability.IRadiationShielding
-
Constructor Summary
ConstructorsConstructorDescriptionPneumaticArmorRadiationShield(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot) Creates an instance of aPneumaticArmorRadiationShieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefinal inthashCode()Returns a hash code value for this object.net.minecraft.world.entity.EquipmentSlotslot()Returns the value of theslotrecord component.net.minecraft.world.item.ItemStackstack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PneumaticArmorRadiationShield
public PneumaticArmorRadiationShield(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot) Creates an instance of aPneumaticArmorRadiationShieldrecord class.- Parameters:
stack- the value for thestackrecord componentslot- the value for theslotrecord component
-
-
Method Details
-
getRadiationShielding
public double getRadiationShielding()- Specified by:
getRadiationShieldingin interfacemekanism.api.radiation.capability.IRadiationShielding
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
stack
public net.minecraft.world.item.ItemStack stack()Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-
slot
public net.minecraft.world.entity.EquipmentSlot slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-