org.bukkit.metadata
Class FixedMetadataValue

java.lang.Object
  extended by org.bukkit.metadata.LazyMetadataValue
      extended by org.bukkit.metadata.FixedMetadataValue
All Implemented Interfaces:
MetadataValue

public class FixedMetadataValue
extends LazyMetadataValue

A FixedMetadataValue is a special case metadata item that contains the same value forever after initialization. Invalidating a FixedMetadataValue has no affect.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.metadata.LazyMetadataValue
LazyMetadataValue.CacheStrategy
 
Constructor Summary
FixedMetadataValue(Plugin owningPlugin, Object value)
          Initializes a FixedMetadataValue with an Object
 
Method Summary
 
Methods inherited from class org.bukkit.metadata.LazyMetadataValue
asBoolean, asByte, asDouble, asFloat, asInt, asLong, asShort, asString, getOwningPlugin, invalidate, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedMetadataValue

public FixedMetadataValue(Plugin owningPlugin,
                          Object value)
Initializes a FixedMetadataValue with an Object

Parameters:
owningPlugin - the Plugin that created this metadata value.
value - the value assigned to this metadata value.


Copyright © 2013. All Rights Reserved.