Package net.minecraftforge.network
Interface Channel.VersionTest
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Channel.VersionTeststatic final Channel.VersionTest
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaccepts(Channel.VersionTest.Status status, int version) Tests is the specified version is compatible with this channel.default Channel.VersionTestand(Channel.VersionTest other) Returns a composed instance that represents a short-circuiting logical AND of this instance and another.static Channel.VersionTestexact(int version) default Channel.VersionTestnegate()Returns a instance that represents the logical negation of this instance.default Channel.VersionTestor(Channel.VersionTest other) Returns a composed instance that represents a short-circuiting logical OR of this instance and another.
- 
Field Details- 
ACCEPT_MISSING
- 
ACCEPT_VANILLA
 
- 
- 
Method Details- 
exact
- 
acceptsTests is the specified version is compatible with this channel. This determines if a we can communicate with a remote end. The status parameter specifies wither or not the remote knows about out channel or not. If the value isMISSINGorVANILLAthen the version parameter is meaningless. If the status isthen the version parameter is the version presented by the remote connection.invalid referencePRESSENT- Returns:
- true if we should allow the connection
 
- 
negateReturns a instance that represents the logical negation of this instance.
- 
andReturns a composed instance that represents a short-circuiting logical AND of this instance and another. When evaluating the composed instance, if this instance isfalse, then theotherinstance is not evaluated.
- 
orReturns a composed instance that represents a short-circuiting logical OR of this instance and another. When evaluating the composed instance, if this instance istrue, then theotherinstance is not evaluated.
 
-