2020-12-06 20:28:28 +01:00

47 lines
2.2 KiB
Java

package com.hbm.items.special;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.ChatStyle;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.world.World;
public class ItemRTGPellet extends ItemRadioactive {
public ItemRTGPellet(float radiation) {
super(radiation);
}
private static final String[] facts = new String[] {
"One gram of Pu-238 costs $8,000.",
"One gram of Pu-238 produces just under half a Watt of decay heat.",
"The typical plutonium RTG contains close to eight kilograms of Pu-238.",
"Pu-238's half life is 87.7 years.",
"A plutonium RTG was used to power the New Horizons probe that visited Pluto in 2015.",
"Po-210 can also be used for RTGs as it generates 140 W/g of decay heat due to its 138 day half life.",
"Pa-231 is an isotope of protactinium that easily fissions, but it isn't quite fissile.",
"Muons generated by matter-antimatter reactions can trigger nuclear fusion reactions at room temperature.",
"Roughly 20% of U-235 nuclei will fail to fission when hit by a neutron. They become U-236 nuclei instead.",
"Thorium reactors are really uranium reactors that convert thorium into U-233.",
"Natural uranium consists of 99.284% U-238, 0.711% U-235, and 0.0055% U-234.",
"Most nuclear reactors use uranium that has been enriched to 3-5% U-235.",
"Uranium-based nuclear weapons require uranium enriched to at least 85-90% U-235.",
"Depleted uranium is uranium that has had most of its U-235 removed. It is effectively pure U-238.",
"In the 1920s, uranium was considered a useless byproduct of the production of radium.",
"The Manhattan Project referred to refined natural uranium as tuballoy, enriched uranium as oralloy, and depleted uranium as depletalloy."
};
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if(!world.isRemote) {
player.addChatComponentMessage(new ChatComponentText(facts[world.rand.nextInt(facts.length)]).setChatStyle(new ChatStyle().setColor(EnumChatFormatting.YELLOW)));
world.playSoundAtEntity(player, "random.orb", 1.0F, 1.0F);
}
return stack;
}
}