Package net.minecraft.tileentity
Class TileEntityBanner
- java.lang.Object
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.TileEntityBanner
-
public class TileEntityBanner extends TileEntity
+ 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)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTileEntityBanner.EnumBannerPattern
-
Field Summary
-
Fields inherited from class net.minecraft.tileentity.TileEntity
blockType, pos, tileEntityInvalid, worldObj
-
-
Constructor Summary
Constructors Constructor Description TileEntityBanner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringfunc_175116_e()static voidfunc_181020_a(NBTTagCompound parNBTTagCompound, int parInt1, NBTTagList parNBTTagList)NBTTagListfunc_181021_d()intgetBaseColor()static intgetBaseColor(ItemStack stack)java.util.List<EnumDyeColor>getColorList()+ Retrieves the list of colors for this tile entity.PacketgetDescriptionPacket()+ Allows for a specialized description packet to be created.java.util.List<TileEntityBanner.EnumBannerPattern>getPatternList()+ Retrieves the list of patterns for this tile entity.static intgetPatterns(ItemStack stack)+ Retrieves the amount of patterns stored on an ItemStack.voidreadFromNBT(NBTTagCompound nbttagcompound)static voidremoveBannerData(ItemStack stack)+ Removes all the banner related data from a provided instance of ItemStack.voidsetItemValues(ItemStack stack)voidwriteToNBT(NBTTagCompound nbttagcompound)-
Methods inherited from class net.minecraft.tileentity.TileEntity
addInfoToCrashReport, createAndLoadEntity, func_183000_F, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getWorld, hasWorldObj, invalidate, isInvalid, markDirty, receiveClientEvent, setPos, setWorldObj, updateContainingBlockInfo, validate
-
-
-
-
Method Detail
-
setItemValues
public void setItemValues(ItemStack stack)
-
writeToNBT
public void writeToNBT(NBTTagCompound nbttagcompound)
- Overrides:
writeToNBTin classTileEntity
-
func_181020_a
public static void func_181020_a(NBTTagCompound parNBTTagCompound, int parInt1, NBTTagList parNBTTagList)
-
readFromNBT
public void readFromNBT(NBTTagCompound nbttagcompound)
- Overrides:
readFromNBTin classTileEntity
-
getDescriptionPacket
public Packet getDescriptionPacket()
+ Allows for a specialized description packet to be created. This is often used to sync tile entity data from the server to the client easily. For example this is used by signs to synchronise the text to be displayed.- Overrides:
getDescriptionPacketin classTileEntity
-
getBaseColor
public int getBaseColor()
-
getBaseColor
public static int getBaseColor(ItemStack stack)
-
getPatterns
public static int getPatterns(ItemStack stack)
+ Retrieves the amount of patterns stored on an ItemStack. If the tag does not exist this value will be 0.
-
getPatternList
public java.util.List<TileEntityBanner.EnumBannerPattern> getPatternList()
+ Retrieves the list of patterns for this tile entity. The banner data will be initialized/refreshed before this happens.
-
func_181021_d
public NBTTagList func_181021_d()
-
getColorList
public java.util.List<EnumDyeColor> getColorList()
+ Retrieves the list of colors for this tile entity. The banner data will be initialized/refreshed before this happens.
-
func_175116_e
public java.lang.String func_175116_e()
-
removeBannerData
public static void removeBannerData(ItemStack stack)
+ Removes all the banner related data from a provided instance of ItemStack.
-
-