Record Class SchematicannonBlockEntity.SchematicannonOptions
java.lang.Object
java.lang.Record
com.simibubi.create.content.schematics.cannon.SchematicannonBlockEntity.SchematicannonOptions
- Enclosing class:
SchematicannonBlockEntity
public static record SchematicannonBlockEntity.SchematicannonOptions(int replaceMode, boolean skipMissing, boolean replaceBlockEntities)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SchematicannonBlockEntity.SchematicannonOptions> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, SchematicannonBlockEntity.SchematicannonOptions> -
Constructor Summary
ConstructorsConstructorDescriptionSchematicannonOptions(int replaceMode, boolean skipMissing, boolean replaceBlockEntities) Creates an instance of aSchematicannonOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereplaceBlockEntitiesrecord component.intReturns the value of thereplaceModerecord component.booleanReturns the value of theskipMissingrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
public static final com.mojang.serialization.Codec<SchematicannonBlockEntity.SchematicannonOptions> CODEC -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,SchematicannonBlockEntity.SchematicannonOptions> STREAM_CODEC
-
-
Constructor Details
-
SchematicannonOptions
public SchematicannonOptions(int replaceMode, boolean skipMissing, boolean replaceBlockEntities) Creates an instance of aSchematicannonOptionsrecord class.- Parameters:
replaceMode- the value for thereplaceModerecord componentskipMissing- the value for theskipMissingrecord componentreplaceBlockEntities- the value for thereplaceBlockEntitiesrecord component
-
-
Method Details
-
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 with '=='. -
replaceMode
public int replaceMode()Returns the value of thereplaceModerecord component.- Returns:
- the value of the
replaceModerecord component
-
skipMissing
public boolean skipMissing()Returns the value of theskipMissingrecord component.- Returns:
- the value of the
skipMissingrecord component
-
replaceBlockEntities
public boolean replaceBlockEntities()Returns the value of thereplaceBlockEntitiesrecord component.- Returns:
- the value of the
replaceBlockEntitiesrecord component
-